r3252 - in jhalfs/trunk: HLFS LFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Mon Dec 4 11:23:27 PST 2006


Author: manuel
Date: 2006-12-04 12:23:26 -0700 (Mon, 04 Dec 2006)
New Revision: 3252

Modified:
   jhalfs/trunk/HLFS/master.sh
   jhalfs/trunk/LFS/master.sh
Log:
MOUNT_PT permissions fixes in LFS and HLFS. In CLFSx it need be revised after 2.1 release. 
Fixed /etc/lfs-release creation.

Modified: jhalfs/trunk/HLFS/master.sh
===================================================================
--- jhalfs/trunk/HLFS/master.sh	2006-12-04 17:47:37 UTC (rev 3251)
+++ jhalfs/trunk/HLFS/master.sh	2006-12-04 19:23:26 UTC (rev 3252)
@@ -109,11 +109,7 @@
 	@\$(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 @@
 		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)

Modified: jhalfs/trunk/LFS/master.sh
===================================================================
--- jhalfs/trunk/LFS/master.sh	2006-12-04 17:47:37 UTC (rev 3251)
+++ jhalfs/trunk/LFS/master.sh	2006-12-04 19:23:26 UTC (rev 3252)
@@ -38,8 +38,8 @@
 		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 @@
 
 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:




More information about the alfs-log mailing list