diff options
author | Jeremy Katz <katzj@redhat.com> | 2009-05-06 14:18:41 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2009-05-06 15:45:04 -0400 |
commit | 133205014ff4aab84d3cfd6953cb5114ec04c637 (patch) | |
tree | 80d28cf3d46c3492b3a138fa77f7568f8d4bc668 /livecd.py | |
parent | 7ea944274d1d46ad1c6e3057fbe28d205b1836f6 (diff) | |
download | anaconda-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.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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) |