r3282 - in jhalfs/trunk: CLFS2 CLFS3

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Mon Dec 11 07:48:26 PST 2006


Author: manuel
Date: 2006-12-11 08:48:26 -0700 (Mon, 11 Dec 2006)
New Revision: 3282

Modified:
   jhalfs/trunk/CLFS2/master.sh
   jhalfs/trunk/CLFS3/master.sh
Log:
CLFS{2,3}: the user that launch the Makefile need write priviledges on MOUNT_PT/jhalfs dir and can't write on MOUNT_PT/etc.

Modified: jhalfs/trunk/CLFS2/master.sh
===================================================================
--- jhalfs/trunk/CLFS2/master.sh	2006-12-11 13:59:08 UTC (rev 3281)
+++ jhalfs/trunk/CLFS2/master.sh	2006-12-11 15:48:26 UTC (rev 3282)
@@ -103,7 +103,8 @@
 
 	@touch \$(MOUNT_PT)/var/run/utmp \$(MOUNT_PT)/var/log/{btmp,lastlog,wtmp}
 	@chmod 664 \$(MOUNT_PT)/var/run/utmp \$(MOUNT_PT)/var/log/lastlog
-	@chown -R \$(LUSER) \$(MOUNT_PT)
+	@chown -R \$(LUSER) \$(MOUNT_PT) && \\
+	chmod -R a+wt \$(MOUNT_PT)/\$(SCRIPT_ROOT)
 
 	@touch \$@ && \\
 	echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
@@ -441,7 +442,8 @@
 	@touch \$@
 
 mk_ROOT:
-	@echo "$VERSION-sysroot - jhalfs build" > \$(MOUNT_PT)/etc/clfs-release
+	@echo "$VERSION-sysroot - jhalfs build" > clfs-release && \\
+	sudo mv clfs-release \$(MOUNT_PT)/etc
 	@sudo make SHELL=/bin/bash ROOT
 	@touch \$@
 

Modified: jhalfs/trunk/CLFS3/master.sh
===================================================================
--- jhalfs/trunk/CLFS3/master.sh	2006-12-11 13:59:08 UTC (rev 3281)
+++ jhalfs/trunk/CLFS3/master.sh	2006-12-11 15:48:26 UTC (rev 3282)
@@ -105,7 +105,8 @@
 
 	@touch \$(MOUNT_PT)/var/run/utmp \$(MOUNT_PT)/var/log/{btmp,lastlog,wtmp}
 	@chmod 664 \$(MOUNT_PT)/var/run/utmp \$(MOUNT_PT)/var/log/lastlog
-	@chown -R \$(LUSER) \$(MOUNT_PT)
+	@chown -R \$(LUSER) \$(MOUNT_PT) && \\
+	chmod -R a+wt \$(MOUNT_PT)/\$(SCRIPT_ROOT)
 
 	@touch \$@ && \\
 	echo " "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
@@ -444,7 +445,8 @@
 	@touch \$@
 
 mk_ROOT:
-	@echo "$VERSION-embedded - jhalfs build" > \$(MOUNT_PT)/etc/clfs-release
+	@echo "$VERSION-embedded - jhalfs build" > clfs-release && \\
+	sudo mv clfs-release \$(MOUNT_PT)/etc
 	@sudo make SHELL=/bin/bash ROOT
 	@touch \$@
 




More information about the alfs-log mailing list