[f17-branch master] mount before resizing live image (#811706)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

In some circumstances the date on the live image could be in the future.
eg. if the system clock was set to last year. e2fsck doesn't like the
future so it would stop the install.

This fixes it by mount/umounting the root fs after it is copied and
before e2fsck and resize are run. The mount sets the m_time to the
current time, preventing e2fsck from losing its mind.
---
 pyanaconda/livecd.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/livecd.py b/pyanaconda/livecd.py
index f72d5d2..894d174 100644
--- a/pyanaconda/livecd.py
+++ b/pyanaconda/livecd.py
@@ -199,6 +199,11 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
         # resize rootfs first, since it is 100% full due to genMinInstDelta
         rootDevice = anaconda.storage.rootDevice
         rootDevice.setup()
+
+        # This is a workaround to make sure the m_time it set to current time so that
+        # the e2fsck before resizing doesn't get confused by times in the future
+        rootDevice.format.testMount()
+
         rootDevice.format.targetSize = rootDevice.size
         rootDevice.format.doResize(intf=anaconda.intf)
 
-- 
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux