Fix BLFS tool inclusion for CLFS:
-fix a typo in Makefile (8 spaces to tab...) -fix permission problems (hopefully)
This commit is contained in:
parent
298282525e
commit
e18f80a34a
2 changed files with 12 additions and 7 deletions
|
@ -69,9 +69,9 @@ cat << EOF
|
||||||
echo "export CLFS_TARGET32=\"${TARGET32}\"" >> \$(LUSER_HOME)/.bashrc && \\
|
echo "export CLFS_TARGET32=\"${TARGET32}\"" >> \$(LUSER_HOME)/.bashrc && \\
|
||||||
echo "source $JHALFSDIR/envars" >> \$(LUSER_HOME)/.bashrc
|
echo "source $JHALFSDIR/envars" >> \$(LUSER_HOME)/.bashrc
|
||||||
@chown \$(LUSER):\$(LGROUP) \$(LUSER_HOME)/.bashrc && \\
|
@chown \$(LUSER):\$(LGROUP) \$(LUSER_HOME)/.bashrc && \\
|
||||||
|
chmod a+wt \$(MOUNT_PT) && \\
|
||||||
touch envars && \\
|
touch envars && \\
|
||||||
chmod -R a+wt \$(MOUNT_PT) && \\
|
chown \$(LUSER):\$(LGROUP) envars
|
||||||
chown -R \$(LUSER) \$(MOUNT_PT)/\$(SCRIPT_ROOT)
|
|
||||||
@\$(call housekeeping)
|
@\$(call housekeeping)
|
||||||
EOF
|
EOF
|
||||||
) >> $MKFILE.tmp
|
) >> $MKFILE.tmp
|
||||||
|
|
|
@ -32,6 +32,11 @@ sed -i s@trunk/BOOK@$BLFS_TREE@ \
|
||||||
sudo make -j1 -C $BUILDDIR$BLFS_ROOT TRACKING_DIR=$BUILDDIR$TRACKING_DIR \
|
sudo make -j1 -C $BUILDDIR$BLFS_ROOT TRACKING_DIR=$BUILDDIR$TRACKING_DIR \
|
||||||
$BUILDDIR$BLFS_ROOT/packages.xml
|
$BUILDDIR$BLFS_ROOT/packages.xml
|
||||||
|
|
||||||
|
# Now /var and /var/lib are owned by root. This is an issue when building
|
||||||
|
# CLFS with method=boot, because system dirs creation is made by user, who
|
||||||
|
# then cannot create /var/lock and the such.
|
||||||
|
sudo chown -R $LUSER $BUILDDIR/var
|
||||||
|
|
||||||
# Because the BLFS Makefile is supposed to be used in chroot (or booted)
|
# Because the BLFS Makefile is supposed to be used in chroot (or booted)
|
||||||
# mode, the tracking file has wrong path for DTD. Change it:
|
# mode, the tracking file has wrong path for DTD. Change it:
|
||||||
sudo sed -i s@$BUILDDIR@@ $BUILDDIR$TRACKING_DIR/instpkg.xml
|
sudo sed -i s@$BUILDDIR@@ $BUILDDIR$TRACKING_DIR/instpkg.xml
|
||||||
|
|
Reference in a new issue