MOUNT_PT permissions fixes in LFS and HLFS. In CLFSx it need be revised after 2.1 release.
Fixed /etc/lfs-release creation.
This commit is contained in:
parent
f221c2c815
commit
ac35c8e7d2
2 changed files with 7 additions and 10 deletions
|
@ -109,11 +109,7 @@ cat << EOF
|
||||||
@\$(call echo_message, Building)
|
@\$(call echo_message, Building)
|
||||||
@mkdir \$(MOUNT_PT)/tools && \\
|
@mkdir \$(MOUNT_PT)/tools && \\
|
||||||
rm -f /tools && \\
|
rm -f /tools && \\
|
||||||
ln -s \$(MOUNT_PT)/tools /
|
ln -s \$(MOUNT_PT)/tools / && \\
|
||||||
@if [ ! -d \$(MOUNT_PT)/sources ]; then \\
|
|
||||||
mkdir \$(MOUNT_PT)/sources; \\
|
|
||||||
fi;
|
|
||||||
@chmod a+wt \$(MOUNT_PT)/sources && \\
|
|
||||||
touch \$@ && \\
|
touch \$@ && \\
|
||||||
echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
|
echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
|
||||||
echo --------------------------------------------------------------------------------\$(WHITE)
|
echo --------------------------------------------------------------------------------\$(WHITE)
|
||||||
|
@ -127,8 +123,8 @@ cat << EOF
|
||||||
touch luser-exist; \\
|
touch luser-exist; \\
|
||||||
fi;
|
fi;
|
||||||
@chown \$(LUSER) \$(MOUNT_PT)/tools && \\
|
@chown \$(LUSER) \$(MOUNT_PT)/tools && \\
|
||||||
chown -R \$(LUSER) \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\
|
chmod -R a+wt \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\
|
||||||
chown \$(LUSER) \$(MOUNT_PT)/sources && \\
|
chmod a+wt \$(SRCSDIR) && \\
|
||||||
touch \$@ && \\
|
touch \$@ && \\
|
||||||
echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
|
echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
|
||||||
echo --------------------------------------------------------------------------------\$(WHITE)
|
echo --------------------------------------------------------------------------------\$(WHITE)
|
||||||
|
|
|
@ -38,8 +38,8 @@ chapter4_Makefiles() { #
|
||||||
touch luser-exist; \\
|
touch luser-exist; \\
|
||||||
fi;
|
fi;
|
||||||
@chown \$(LUSER) \$(MOUNT_PT)/tools && \\
|
@chown \$(LUSER) \$(MOUNT_PT)/tools && \\
|
||||||
chown -R \$(LUSER) \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\
|
chmod -R a+wt \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\
|
||||||
chmod -R a+wt \$(MOUNT_PT) && \\
|
chmod a+wt \$(SRCSDIR) && \\
|
||||||
touch \$@ && \\
|
touch \$@ && \\
|
||||||
echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
|
echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
|
||||||
echo --------------------------------------------------------------------------------\$(WHITE)
|
echo --------------------------------------------------------------------------------\$(WHITE)
|
||||||
|
@ -409,7 +409,8 @@ build_Makefile() { #
|
||||||
|
|
||||||
all: ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_BLFS_TOOL
|
all: ck_UID mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_BLFS_TOOL
|
||||||
@sudo make do_housekeeping
|
@sudo make do_housekeeping
|
||||||
@sudo echo "$VERSION - jhalfs build" > \$(MOUNT_PT)/etc/lfs-release
|
@echo "$VERSION - jhalfs build" > lfs-release && \\
|
||||||
|
sudo mv lfs-release \$(MOUNT_PT)/etc
|
||||||
@\$(call echo_finished,$VERSION)
|
@\$(call echo_finished,$VERSION)
|
||||||
|
|
||||||
ck_UID:
|
ck_UID:
|
||||||
|
|
Reference in a new issue