diff options
Diffstat (limited to 'scripts/lib/wic/ksparser.py')
-rw-r--r-- | scripts/lib/wic/ksparser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 596b6e8e7e..a1aaf1b4b3 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py | |||
@@ -154,6 +154,7 @@ class KickStart(): | |||
154 | part.add_argument('--include-path', nargs='+', action='append') | 154 | part.add_argument('--include-path', nargs='+', action='append') |
155 | part.add_argument('--change-directory') | 155 | part.add_argument('--change-directory') |
156 | part.add_argument("--extra-space", type=sizetype("M")) | 156 | part.add_argument("--extra-space", type=sizetype("M")) |
157 | part.add_argument('--extra-partition-space', type=sizetype("M")) | ||
157 | part.add_argument('--fsoptions', dest='fsopts') | 158 | part.add_argument('--fsoptions', dest='fsopts') |
158 | part.add_argument('--fspassno', dest='fspassno') | 159 | part.add_argument('--fspassno', dest='fspassno') |
159 | part.add_argument('--fstype', default='vfat', | 160 | part.add_argument('--fstype', default='vfat', |
@@ -259,6 +260,8 @@ class KickStart(): | |||
259 | err = "%s:%d: Must set the label with --label" \ | 260 | err = "%s:%d: Must set the label with --label" \ |
260 | % (confpath, lineno) | 261 | % (confpath, lineno) |
261 | raise KickStartError(err) | 262 | raise KickStartError(err) |
263 | if not parsed.extra_partition_space: | ||
264 | parsed.extra_partition_space = 0 | ||
262 | # using ArgumentParser one cannot easily tell if option | 265 | # using ArgumentParser one cannot easily tell if option |
263 | # was passed as argument, if said option has a default | 266 | # was passed as argument, if said option has a default |
264 | # value; --overhead-factor/--extra-space cannot be used | 267 | # value; --overhead-factor/--extra-space cannot be used |