summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-23 15:18:57 +0000
committerMatt Wilson <msw@redhat.com>1999-09-23 15:18:57 +0000
commit1163bca369c727ff769a98e20bd44d3ae6ac6b48 (patch)
tree5b54005e7afb5478137b21cd8925162e630ef097 /todo.py
parent61810da7e75b8f613483c4fc82fe7084e220bb23 (diff)
downloadanaconda-1163bca369c727ff769a98e20bd44d3ae6ac6b48.tar.gz
anaconda-1163bca369c727ff769a98e20bd44d3ae6ac6b48.tar.xz
anaconda-1163bca369c727ff769a98e20bd44d3ae6ac6b48.zip
1) set madeFilesystems when mke2fs is run -- mkswap isn't good enough
2) don't pass block size to mke2fs
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/todo.py b/todo.py
index 8cb3b59bb..bb8b722f5 100644
--- a/todo.py
+++ b/todo.py
@@ -593,7 +593,7 @@ class ToDo:
_("Formatting %s filesystem...") % (mntpoint,))
isys.makeDevInode(device, '/tmp/' + device)
if fsystem == "ext2" and createFs:
- args = [ "mke2fs", '/tmp/' + device, '-b', '4096', '-i', '16384' ]
+ args = [ "mke2fs", '/tmp/' + device ]
# set up raid options for md devices.
if device[:2] == 'md':
for (rmnt, rdevice, fsType, raidType, makeup) in raid:
@@ -609,11 +609,9 @@ class ToDo:
if self.badBlockCheck:
args.append ("-c")
- self.log ("running mke2fs on %s with args %s", device, repr (args))
-
iutil.execWithRedirect ("/usr/sbin/mke2fs",
args,
- stdout = None, stderr = None,
+ stdout = "/dev/tty5", stderr = "/dev/tty5",
searchPath = 1)
elif fsystem == "swap" and createSwap:
rc = iutil.execWithRedirect ("/usr/sbin/mkswap",
@@ -628,7 +626,9 @@ class ToDo:
os.remove('/tmp/' + device)
w.pop()
- self.madeFilesystems = 1
+
+ if createFs:
+ self.madeFilesystems = 1
def addMount(self, device, location, fsystem, reformat = 1):
if fsystem == "swap":