[Fedora-spins] [PATCH] Provide a means to test the home.img filesystem, if requested.

Frederick Grose fgrose at gmail.com
Mon Jan 28 02:03:17 UTC 2013


commit 36a08e495566d89ea8b2986eb3f3e48fdecd8ff2
Author: Frederick Grose <fgrose at sugarlabs.org>
Date:   Sun Jan 27 20:55:36 2013 -0500

    Provide a means to test the home.img filesystem, if requested.

diff --git a/fedora-live-base.ks b/fedora-live-base.ks
index ecbc9b5..a455aeb 100644
--- a/fedora-live-base.ks
+++ b/fedora-live-base.ks
@@ -134,6 +134,11 @@ mountPersistentHome() {
     homedev=/dev/mapper/EncHome
   fi

+  # Check the filesystem, if requested.
+  if [ -e /forcehomefsck ]; then
+    e2fsck -f -y -v \$homedev || e2fsck -f -y \$homedev
+    rm /forcehomefsck
+  fi
   # and finally do the mount
   mount \$mountopts \$homedev /home
   # if we have /home under what's passed for persistent home, then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/spins/attachments/20130127/3b0ec8d3/attachment-0001.html>


More information about the spins mailing list