Author: bdubbs Date: Sat May 11 21:13:51 2013 New Revision: 10272 Log: Make sure the root fs is mounted read only in mountfs before halting
Modified: trunk/BOOK/bootscripts/ChangeLog trunk/BOOK/bootscripts/lfs/init.d/mountfs trunk/BOOK/chapter01/changelog.xml trunk/BOOK/packages.ent Modified: trunk/BOOK/bootscripts/ChangeLog ============================================================================== --- trunk/BOOK/bootscripts/ChangeLog Fri May 10 20:14:32 2013 (r10271) +++ trunk/BOOK/bootscripts/ChangeLog Sat May 11 21:13:51 2013 (r10272) @@ -1,3 +1,7 @@ +2013-05-11 Bruce Dubbs <[email protected]> + * Make sure the root fs is mounted read only in mountfs + before halting + 2013-01-24 Bruce Dubbs <[email protected]> * Remove local attribue of some variables for Bourne shell compatability Modified: trunk/BOOK/bootscripts/lfs/init.d/mountfs ============================================================================== --- trunk/BOOK/bootscripts/lfs/init.d/mountfs Fri May 10 20:14:32 2013 (r10271) +++ trunk/BOOK/bootscripts/lfs/init.d/mountfs Sat May 11 21:13:51 2013 (r10272) @@ -65,6 +65,9 @@ umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc >/dev/null evaluate_retval + # Make sure / is mounted read only (umount bug?) + mount -n -o remount,ro / + # Make all LVM volume groups unavailable, if appropriate # This fails if swap or / are on an LVM partition #if [ -x /sbin/vgchange ]; then /sbin/vgchange -an > /dev/null; fi Modified: trunk/BOOK/chapter01/changelog.xml ============================================================================== --- trunk/BOOK/chapter01/changelog.xml Fri May 10 20:14:32 2013 (r10271) +++ trunk/BOOK/chapter01/changelog.xml Sat May 11 21:13:51 2013 (r10272) @@ -39,6 +39,10 @@ <para>2013-05-11</para> <itemizedlist> <listitem> + <para>[bdubbs] - Minor update to boot script mountfs + to ensure clean shutdown.</para> + </listitem> + <listitem> <para>[bdubbs] - Upgrade to gawk-4.1.0. Fixes <ulink url="&lfs-ticket-root;3343">#3343</ulink>.</para> </listitem> @@ -57,7 +61,7 @@ <ulink url="&lfs-ticket-root;3341">#3341</ulink>.</para> </listitem> <listitem> - <para>[bdubbs] - Upgrade to gettest-0.18.2.1. Fixes + <para>[bdubbs] - Upgrade to gettext-0.18.2.1. Fixes <ulink url="&lfs-ticket-root;3298">#3298</ulink>.</para> </listitem> </itemizedlist> Modified: trunk/BOOK/packages.ent ============================================================================== --- trunk/BOOK/packages.ent Fri May 10 20:14:32 2013 (r10271) +++ trunk/BOOK/packages.ent Sat May 11 21:13:51 2013 (r10272) @@ -310,7 +310,7 @@ <!ENTITY less-ch6-du "3.6 MB"> <!ENTITY less-ch6-sbu "less than 0.1 SBU"> -<!ENTITY lfs-bootscripts-version "20130123"> <!-- Scripts depend on this format --> +<!ENTITY lfs-bootscripts-version "20130511"> <!-- 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
