summaryrefslogtreecommitdiffstats
path: root/livecd.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2009-05-06 14:18:41 -0400
committerJeremy Katz <katzj@redhat.com>2009-05-06 15:45:04 -0400
commit133205014ff4aab84d3cfd6953cb5114ec04c637 (patch)
tree80d28cf3d46c3492b3a138fa77f7568f8d4bc668 /livecd.py
parent7ea944274d1d46ad1c6e3057fbe28d205b1836f6 (diff)
downloadanaconda-133205014ff4aab84d3cfd6953cb5114ec04c637.tar.gz
anaconda-133205014ff4aab84d3cfd6953cb5114ec04c637.tar.xz
anaconda-133205014ff4aab84d3cfd6953cb5114ec04c637.zip
Verify filesystems after the live resize
We should also fsck the filesystem after the live resize to ensure that errors don't creep in
Diffstat (limited to 'livecd.py')
-rw-r--r--livecd.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/livecd.py b/livecd.py
index 280434b10..6c559a2ce 100644
--- a/livecd.py
+++ b/livecd.py
@@ -333,6 +333,17 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
if rc:
log.error("error running resize2fs; leaving filesystem as is")
+ return
+
+ # we should also do a fsck afterwards
+ cmd = ["e2fsck", "-f", "-y", rootDevice.path]
+ out = open("/dev/tty5", "w")
+ proc = subprocess.Popen(cmd, stdout=out, stderr=out)
+ rc = proc.poll()
+ while rc is None:
+ win and win.refresh()
+ time.sleep(0.5)
+ rc = proc.poll()
def doPostInstall(self, anaconda):
self._doFilesystemMangling(anaconda)