diff --git a/HLFS/master.sh b/HLFS/master.sh index acc17ec..3ba0054 100644 --- a/HLFS/master.sh +++ b/HLFS/master.sh @@ -109,11 +109,7 @@ cat << EOF @\$(call echo_message, Building) @mkdir \$(MOUNT_PT)/tools && \\ rm -f /tools && \\ - ln -s \$(MOUNT_PT)/tools / - @if [ ! -d \$(MOUNT_PT)/sources ]; then \\ - mkdir \$(MOUNT_PT)/sources; \\ - fi; - @chmod a+wt \$(MOUNT_PT)/sources && \\ + ln -s \$(MOUNT_PT)/tools / && \\ touch \$@ && \\ echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ echo --------------------------------------------------------------------------------\$(WHITE) @@ -127,8 +123,8 @@ cat << EOF touch luser-exist; \\ fi; @chown \$(LUSER) \$(MOUNT_PT)/tools && \\ - chown -R \$(LUSER) \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\ - chown \$(LUSER) \$(MOUNT_PT)/sources && \\ + chmod -R a+wt \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\ + chmod a+wt \$(SRCSDIR) && \\ touch \$@ && \\ echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ echo --------------------------------------------------------------------------------\$(WHITE) diff --git a/LFS/master.sh b/LFS/master.sh index fe34737..221d20a 100644 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -38,8 +38,8 @@ chapter4_Makefiles() { # touch luser-exist; \\ fi; @chown \$(LUSER) \$(MOUNT_PT)/tools && \\ - chown -R \$(LUSER) \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\ - chmod -R a+wt \$(MOUNT_PT) && \\ + chmod -R a+wt \$(MOUNT_PT)/\$(SCRIPT_ROOT) && \\ + chmod a+wt \$(SRCSDIR) && \\ touch \$@ && \\ echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\ 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 @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) ck_UID: