We need to update our master.sh do-housekeeping target like LFS. Currently,
after each build is done, some mount points are still mounted when they
shouldn't be. I have verified with the last 10 builds.
Index: CLFS/master.sh
===================================================================
--- CLFS/master.sh (revision 3964)
+++ CLFS/master.sh (working copy)
@@ -1127,8 +1127,11 @@
@touch \$@
do-housekeeping:
- @-umount \$(MOUNT_PT)/dev/pts
- @-if [ -h \$(MOUNT_PT)/dev/shm ]; then \\
+ @-umount \$(MOUNT_PT)/sys
+ @-umount \$(MOUNT_PT)/proc
+ @-if mountpoint -q \$(MOUNT_PT)/run; then \\
+ umount \$(MOUNT_PT)/run; \\
+ elif [ -h \$(MOUNT_PT)/dev/shm ]; then \\
link=\$\$(readlink \$(MOUNT_PT)/dev/shm); \\
umount \$(MOUNT_PT)/\$\$link; \\
unset link; \\
@@ -1135,15 +1138,13 @@
else \\
umount \$(MOUNT_PT)/dev/shm; \\
fi
+ @-umount \$(MOUNT_PT)/dev/pts
@-umount \$(MOUNT_PT)/dev
- @-umount \$(MOUNT_PT)/sys
- @-umount \$(MOUNT_PT)/proc
- @-rm /tools /cross-tools
+ @-rm /tools
@-if [ ! -f luser-exist ]; then \\
userdel \$(LUSER); \\
rm -rf \$(LUSER_HOME); \\
fi;
-
EOF
) >> $MKFILE
Sincerely,
William Harrington
--
http://lists.linuxfromscratch.org/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page