summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-06-21 22:00:56 +0000
committerJeremy Katz <katzj@redhat.com>2001-06-21 22:00:56 +0000
commit198cc72ac947e4230d7641789ea3a230d201727a (patch)
tree80d8da189b64baccc94a055d1a571165707ea509 /fsset.py
parentf3eb27d4ab9bb63c12df3593563c323f898cf39d (diff)
downloadanaconda-198cc72ac947e4230d7641789ea3a230d201727a.tar.gz
anaconda-198cc72ac947e4230d7641789ea3a230d201727a.tar.xz
anaconda-198cc72ac947e4230d7641789ea3a230d201727a.zip
fixup mkreiserfs stuff
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py25
1 files changed, 19 insertions, 6 deletions
diff --git a/fsset.py b/fsset.py
index bab580e67..c52b3fdb3 100644
--- a/fsset.py
+++ b/fsset.py
@@ -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):