diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-11 01:59:24 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-11 01:59:24 +0000 |
commit | a7bab3f6865cc2ffcfe36c855145976bbbb6200a (patch) | |
tree | 90011d9fb12a5306faadcb6d834d1e4393f3abb1 /kickstart.py | |
parent | 3f3a0483d9a72a5a1111fd3bf6b1ec318aaf0201 (diff) | |
download | anaconda-a7bab3f6865cc2ffcfe36c855145976bbbb6200a.tar.gz anaconda-a7bab3f6865cc2ffcfe36c855145976bbbb6200a.tar.xz anaconda-a7bab3f6865cc2ffcfe36c855145976bbbb6200a.zip |
badblocks support -- have to do this before even formatting swap as they
might want to check their swap for badblocks. also, still needs to
parse the output and have a progress bar post-beta 2
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py index 3a5291752..e00f8bf49 100644 --- a/kickstart.py +++ b/kickstart.py @@ -681,12 +681,14 @@ class KickstartBase(BaseInstallClass): uniqueID = None start = None end = None + badblocks = None (args, extra) = isys.getopt(args, '', [ 'size=', 'maxsize=', 'grow', 'onpart=', 'ondisk=', 'bytes-per-inode=', 'usepart=', 'type=', 'fstype=', 'asprimary', - 'noformat', 'start=', 'end=']) + 'noformat', 'start=', 'end=', + 'badblocks']) for n in args: (str, arg) = n @@ -719,6 +721,8 @@ class KickstartBase(BaseInstallClass): start = arg elif str == "--end": end = arg + elif str == "--badblocks": + badblocks = 1 if len(extra) != 1: raise ValueError, "partition command requires one anonymous argument" @@ -756,6 +760,8 @@ class KickstartBase(BaseInstallClass): request.format = 0 if id: request.uniqueID = uniqueID + if badblocks: + request.badblocks = badblocks id.partitions.autoPartitionRequests.append(request) |