Author: bdubbs Date: Wed May 15 10:01:37 2013 New Revision: 10275 Log: Remove unneeded options and commands from mountfs and mountvirtfs when mtab is a symlink to /proc/self/mounts
Modified: trunk/BOOK/bootscripts/ChangeLog trunk/BOOK/bootscripts/lfs/init.d/mountfs trunk/BOOK/bootscripts/lfs/init.d/mountvirtfs trunk/BOOK/chapter01/changelog.xml trunk/BOOK/general.ent trunk/BOOK/packages.ent Modified: trunk/BOOK/bootscripts/ChangeLog ============================================================================== --- trunk/BOOK/bootscripts/ChangeLog Tue May 14 14:25:54 2013 (r10274) +++ trunk/BOOK/bootscripts/ChangeLog Wed May 15 10:01:37 2013 (r10275) @@ -1,3 +1,7 @@ +2013-05-15 Bruce Dubbs <[email protected]> + * Remove unneeded options and commands from mountfs and + mountvirtfs when mtab is a symlink to /proc/self/mounts + 2013-05-11 Bruce Dubbs <[email protected]> * Make sure the root fs is mounted read only in mountfs before halting Modified: trunk/BOOK/bootscripts/lfs/init.d/mountfs ============================================================================== --- trunk/BOOK/bootscripts/lfs/init.d/mountfs Tue May 14 14:25:54 2013 (r10274) +++ trunk/BOOK/bootscripts/lfs/init.d/mountfs Wed May 15 10:01:37 2013 (r10275) @@ -33,23 +33,12 @@ case "${1}" in start) log_info_msg "Remounting root file system in read-write mode..." - mount -n -o remount,rw / >/dev/null + mount -o remount,rw / >/dev/null evaluate_retval # Remove fsck-related file system watermarks. rm -f /fastboot /forcefsck - log_info_msg "Recording existing mounts in /etc/mtab..." - > /etc/mtab - - mount -f / || failed=1 - mount -f /proc || failed=1 - mount -f /sys || failed=1 - mount -f /run || failed=1 - mount -f /dev || failed=1 - (exit ${failed}) - evaluate_retval - # This will mount all filesystems that do not have _netdev in # their option list. _netdev denotes a network filesystem. @@ -60,13 +49,13 @@ ;; stop) - # Don't unmount tmpfs like /run + # Don't unmount virtual file systems like /run log_info_msg "Unmounting all other currently mounted file systems..." - umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc >/dev/null + umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts >/dev/null evaluate_retval - # Make sure / is mounted read only (umount bug?) - mount -n -o remount,ro / + # Make sure / is mounted read only (umount bug) + mount -o remount,ro / # Make all LVM volume groups unavailable, if appropriate # This fails if swap or / are on an LVM partition Modified: trunk/BOOK/bootscripts/lfs/init.d/mountvirtfs ============================================================================== --- trunk/BOOK/bootscripts/lfs/init.d/mountvirtfs Tue May 14 14:25:54 2013 (r10274) +++ trunk/BOOK/bootscripts/lfs/init.d/mountvirtfs Wed May 15 10:01:37 2013 (r10275) @@ -33,7 +33,7 @@ start) # Make sure /run/var is available before logging any messages if ! mountpoint /run >/dev/null; then - mount -n /run || failed=1 + mount /run || failed=1 fi mkdir -p /run/var /run/lock /run/shm @@ -43,17 +43,17 @@ if ! mountpoint /proc >/dev/null; then log_info_msg2 " ${INFO}/proc" - mount -n -o nosuid,noexec,nodev /proc || failed=1 + mount -o nosuid,noexec,nodev /proc || failed=1 fi if ! mountpoint /sys >/dev/null; then log_info_msg2 " ${INFO}/sys" - mount -n -o nosuid,noexec,nodev /sys || failed=1 + mount -o nosuid,noexec,nodev /sys || failed=1 fi if ! mountpoint /dev >/dev/null; then log_info_msg2 " ${INFO}/dev" - mount -n -o mode=0755,nosuid /dev || failed=1 + mount -o mode=0755,nosuid /dev || failed=1 fi # Copy devices that Udev >= 155 doesn't handle to /dev Modified: trunk/BOOK/chapter01/changelog.xml ============================================================================== --- trunk/BOOK/chapter01/changelog.xml Tue May 14 14:25:54 2013 (r10274) +++ trunk/BOOK/chapter01/changelog.xml Wed May 15 10:01:37 2013 (r10275) @@ -36,6 +36,16 @@ </listitem> --> <listitem> + <para>2013-05-15</para> + <itemizedlist> + <listitem> + <para>[bdubbs] - Remove unnecessary options in bootscripts + due to mtab change.</para> + </listitem> + </itemizedlist> + </listitem> + + <listitem> <para>2013-05-14</para> <itemizedlist> <listitem> Modified: trunk/BOOK/general.ent ============================================================================== --- trunk/BOOK/general.ent Tue May 14 14:25:54 2013 (r10274) +++ trunk/BOOK/general.ent Wed May 15 10:01:37 2013 (r10275) @@ -1,5 +1,5 @@ -<!ENTITY version "SVN-20130514"> -<!ENTITY releasedate "May 14, 2013"> +<!ENTITY version "SVN-20130515"> +<!ENTITY releasedate "May 15, 2013"> <!ENTITY copyrightdate "1999-2013"><!-- jhalfs needs a literal dash, not – --> <!ENTITY milestone "7.4"> <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> Modified: trunk/BOOK/packages.ent ============================================================================== --- trunk/BOOK/packages.ent Tue May 14 14:25:54 2013 (r10274) +++ trunk/BOOK/packages.ent Wed May 15 10:01:37 2013 (r10275) @@ -310,7 +310,7 @@ <!ENTITY less-ch6-du "3.6 MB"> <!ENTITY less-ch6-sbu "less than 0.1 SBU"> -<!ENTITY lfs-bootscripts-version "20130511"> <!-- Scripts depend on this format --> +<!ENTITY lfs-bootscripts-version "20130515"> <!-- Scripts depend on this format --> <!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> <!-- Updated in Makefile --> <!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2"> <!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM"> <!-- Updated in Makefile --> -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
