From ae1d8a5b5936fbe4743762dc6d1660a44eb54ef9 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Fri, 8 May 2020 08:22:55 +0000 Subject: [PATCH] Prevent a permission problem when using blfs tools with the cros-chap5 branch: /var/lib needs to be owned by LUSER during chap 5, but it is owned by root after installing the blfs tools. SO chown it. --- common/libs/func_install_blfs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/libs/func_install_blfs b/common/libs/func_install_blfs index 77316c9..2303154 100644 --- a/common/libs/func_install_blfs +++ b/common/libs/func_install_blfs @@ -61,6 +61,10 @@ sudo make -j1 -C $BUILDDIR$BLFS_ROOT \ SVN=$SVN_2/BLFS/$BLFS_TREE \ $BUILDDIR$BLFS_ROOT/packages.xml +# But then $BUILDDIR/var/lib/ is owned by root if just created, which +# prevents $LUSER to create "nss_db". Change ownership here +sudo chown $LUSER:$LGROUP $BUILDDIR/var/lib + # Because the BLFS Makefile is supposed to be used in chroot (or booted) # mode, the tracking file has wrong path for DTD. Change it: sudo sed -i s@$BUILDDIR@@ $BUILDDIR$TRACKING_DIR/instpkg.xml