Browse Source

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

Bruce Dubbs 12 năm trước cách đây
mục cha
commit
df02b599e1
4 tập tin đã thay đổi với 13 bổ sung2 xóa
  1. 4 0
      bootscripts/ChangeLog
  2. 3 0
      bootscripts/lfs/init.d/mountfs
  3. 5 1
      chapter01/changelog.xml
  4. 1 1
      packages.ent

+ 4 - 0
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

+ 3 - 0
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

+ 5 - 1
chapter01/changelog.xml

@@ -38,6 +38,10 @@
     <listitem>
       <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>
@@ -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>

+ 1 - 1
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 -->