Changeset 088130f


Ignore:
Timestamp:
09/17/2020 03:30:29 PM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
5562bf1
Parents:
426e40b
Message:

Fix changing the ownership of $BUILDDIR/var/lib to LUSER when it has been
created by func_install_blfs. Fixes ticket #1729

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r426e40b r088130f  
    7171    esac
    7272    # Grab the name of the target
    73     # This is only use to check the name in "opt_override" or "BLACKIST"
     73    # This is only used to check the name in "opt_override" or "BLACKIST"
    7474    name=`echo ${this_script} | sed -e 's@[0-9]\{3,4\}-@@' \
    7575                                    -e 's@-pass[0-9]\{1\}@@' \
     
    143143      *addinguser)
    144144(
     145# /var/lib may already exist and be owned by root if blfs tools
     146# have been installed.
    145147cat << EOF
    146148        @if [ -f luser-id ]; then \\
     
    153155        \$(PRT_DU) >>logs/\$@
    154156        @chown \$(LUSER):\$(LGROUP) envars
     157        @[ -d "\$(MOUNT_PT)/var/lib" ] && \\
     158            chown \$(LUSER):\$(LGROUP) \$(MOUNT_PT)/var/lib
    155159        @chmod -R a+wt $JHALFSDIR
    156160        @chmod a+wt \$(SRCSDIR)
  • common/libs/func_install_blfs

    r426e40b r088130f  
    6363
    6464# But then $BUILDDIR/var/lib/ is owned by root if just created, which
    65 # prevents $LUSER to create "nss_db". Change ownership here
    66 sudo chown $LUSER:$LGROUP $BUILDDIR/var/lib
     65# prevents $LUSER to create "nss_db". The problem is that $LUSER
     66# May not have been created yet. So do not change ownership here
     67# and do it in master.sh for chapter 4.
     68#sudo chown $LUSER:$LGROUP $BUILDDIR/var/lib
    6769
    6870# Because the BLFS Makefile is supposed to be used in chroot (or booted)
Note: See TracChangeset for help on using the changeset viewer.