diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-06-21 22:00:56 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-06-21 22:00:56 +0000 |
commit | 198cc72ac947e4230d7641789ea3a230d201727a (patch) | |
tree | 80d8da189b64baccc94a055d1a571165707ea509 /fsset.py | |
parent | f3eb27d4ab9bb63c12df3593563c323f898cf39d (diff) | |
download | anaconda-198cc72ac947e4230d7641789ea3a230d201727a.tar.gz anaconda-198cc72ac947e4230d7641789ea3a230d201727a.tar.xz anaconda-198cc72ac947e4230d7641789ea3a230d201727a.zip |
fixup mkreiserfs stuff
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 25 |
1 files changed, 19 insertions, 6 deletions
@@ -183,12 +183,25 @@ class reiserfsFileSystem(FileSystemType): def formatDevice(self, entry, progress, message, chroot='/'): devicePath = entry.device.setupDevice(chroot) - # XXX need to actually capture mkreiserfs output - rc = iutil.execWithRedirect ("/sbin/mkreiserfs", - ["mkreiserfs", devicePath], - stdout = None, stderr = None, - searchPath = 1) - + p = os.pipe() + os.write(p[1], "y\n") + os.close(p[1]) + + rc = iutil.execWithRedirect("/usr/sbin/mkreiserfs", + ["mkreiserfs", devicePath ], + stdin = p[0], + stdout = "/dev/tty5", + stderr = "/dev/tty5") + + if rc: + message and message(_("Error"), + _("An error occurred trying to format %s. " + "This problem is serious, and the install " + "cannot continue.\n\n" + "Press Enter to reboot your " + "system.") %(entry.device.getDevice(),)) + raise SystemError + fileSystemTypeRegister(reiserfsFileSystem()) class extFileSystem(FileSystemType): |