diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2013-05-12 04:13:51 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2013-05-12 04:13:51 +0000 |
commit | df02b599e1f24788dbda1a1f707178c0ad3fb96a (patch) | |
tree | 451dd9ee2ec0ed8fb9128d56c6048b8cb45754a5 | |
parent | f4bdf48b7001cad5b3c883c6ee0d17d34c841671 (diff) |
Make sure the root fs is mounted read only in mountfs
before halting
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10272 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | bootscripts/ChangeLog | 4 | ||||
-rw-r--r-- | bootscripts/lfs/init.d/mountfs | 3 | ||||
-rw-r--r-- | chapter01/changelog.xml | 6 | ||||
-rw-r--r-- | packages.ent | 2 |
4 files changed, 13 insertions, 2 deletions
diff --git a/bootscripts/ChangeLog b/bootscripts/ChangeLog index 627b1630f..3d7b4a5d2 100644 --- a/bootscripts/ChangeLog +++ b/bootscripts/ChangeLog @@ -1,3 +1,7 @@ +2013-05-11 Bruce Dubbs <bdubbs@linuxfromscratch.org> + * Make sure the root fs is mounted read only in mountfs + before halting + 2013-01-24 Bruce Dubbs <bdubbs@linuxfromscratch.org> * Remove local attribue of some variables for Bourne shell compatability diff --git a/bootscripts/lfs/init.d/mountfs b/bootscripts/lfs/init.d/mountfs index 47c21bc33..b700d8e7d 100644 --- a/bootscripts/lfs/init.d/mountfs +++ b/bootscripts/lfs/init.d/mountfs @@ -65,6 +65,9 @@ case "${1}" in 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 diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 50d0dd6ea..461640f3c 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -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> diff --git a/packages.ent b/packages.ent index a36bf6d8d..47f5d52f6 100644 --- a/packages.ent +++ b/packages.ent @@ -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 --> |