r2685 - in jhalfs/trunk: CLFS HLFS LFS

georgeb at linuxfromscratch.org georgeb at linuxfromscratch.org
Sat May 13 08:32:41 PDT 2006


Author: georgeb
Date: 2006-05-13 09:32:39 -0600 (Sat, 13 May 2006)
New Revision: 2685

Modified:
   jhalfs/trunk/CLFS/master.sh
   jhalfs/trunk/HLFS/master.sh
   jhalfs/trunk/LFS/master.sh
Log:
added housekeeping to virtual fs at the end of the build

Modified: jhalfs/trunk/CLFS/master.sh
===================================================================
--- jhalfs/trunk/CLFS/master.sh	2006-05-13 11:26:19 UTC (rev 2684)
+++ jhalfs/trunk/CLFS/master.sh	2006-05-13 15:32:39 UTC (rev 2685)
@@ -1016,7 +1016,7 @@
 if [[ "${METHOD}" = "chroot" ]]; then
 (
 	cat << EOF
-all:  chapter2 chapter3 chapter4 chapter5 chapter6 chapter7 chapter8
+all:  chapter2 chapter3 chapter4 chapter5 chapter6 chapter7 chapter8 do-housekeeping
 	@\$(call echo_finished,$VERSION)
 
 chapter2:  023-creatingtoolsdir 024-creatingcrossdir 025-addinguser 026-settingenvironment
@@ -1077,6 +1077,17 @@
 	@chown lfs:lfs /home/lfs/.bash* && \\
 	touch \$@
 
+do-housekeeping:
+	-umount \$(MOUNT_PT)/dev/pts
+	-umount \$(MOUNT_PT)/dev/shm
+	-umount \$(MOUNT_PT)/dev
+	-umount \$(MOUNT_PT)/sys
+	-umount \$(MOUNT_PT)/proc
+	-if [ ! -f user-lfs-exist ]; then \\
+		userdel lfs; \\
+		rm -rf /home/lfs; \\
+	fi;
+
 EOF
 ) >> $MKFILE
 fi
@@ -1146,6 +1157,7 @@
 	@chown lfs:lfs /home/lfs/.bash* && \\
 	touch \$@
 
+
 EOF
 ) >> $MKFILE
 fi

Modified: jhalfs/trunk/HLFS/master.sh
===================================================================
--- jhalfs/trunk/HLFS/master.sh	2006-05-13 11:26:19 UTC (rev 2684)
+++ jhalfs/trunk/HLFS/master.sh	2006-05-13 15:32:39 UTC (rev 2685)
@@ -561,6 +561,17 @@
 	@chown lfs:lfs /home/lfs/.bash* && \\
 	touch \$@
 
+do-housekeeping:
+	-umount \$(MOUNT_PT)/dev/pts
+	-umount \$(MOUNT_PT)/dev/shm
+	-umount \$(MOUNT_PT)/dev
+	-umount \$(MOUNT_PT)/sys
+	-umount \$(MOUNT_PT)/proc
+	-if [ ! -f user-lfs-exist ]; then \\
+		userdel lfs; \\
+		rm -rf /home/lfs; \\
+	fi;
+	
 EOF
 ) >> $MKFILE
 

Modified: jhalfs/trunk/LFS/master.sh
===================================================================
--- jhalfs/trunk/LFS/master.sh	2006-05-13 11:26:19 UTC (rev 2684)
+++ jhalfs/trunk/LFS/master.sh	2006-05-13 15:32:39 UTC (rev 2685)
@@ -376,7 +376,7 @@
   # as a dependency.
 (
     cat << EOF
-all:  chapter4 chapter5 chapter6 chapter789
+all:  chapter4 chapter5 chapter6 chapter789 do_housekeeping
 	@\$(call echo_finished,$VERSION)
 
 chapter4:  020-creatingtoolsdir 021-addinguser 022-settingenvironment
@@ -431,7 +431,18 @@
 	fi;
 	@chown lfs:lfs /home/lfs/.bash* && \\
 	touch \$@
-
+	
+do_housekeeping:
+	-umount \$(MOUNT_PT)/sys
+	-umount \$(MOUNT_PT)/proc
+	-umount \$(MOUNT_PT)/dev/shm
+	-umount \$(MOUNT_PT)/dev/pts
+	-umount \$(MOUNT_PT)/dev
+	-if [ ! -f user-lfs-exist ]; then \\
+		userdel lfs; \\
+		rm -rf /home/lfs; \\
+	fi;
+	
 EOF
 ) >> $MKFILE
 




More information about the alfs-log mailing list