We should also fsck the filesystem after the live resize to ensure that errors don't creep in --- livecd.py | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/livecd.py b/livecd.py index 280434b..6c559a2 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) -- 1.6.1 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list