From 11187463d676c1ba4c28c23654ef2ec9cec0bb33 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Wed, 3 May 2000 22:55:07 +0000 Subject: Implemented --asprimary to force autoalocation as a primary only --- kickstart.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'kickstart.py') diff --git a/kickstart.py b/kickstart.py index 2a01ae98d..af1888665 100644 --- a/kickstart.py +++ b/kickstart.py @@ -427,12 +427,14 @@ class Kickstart(BaseInstallClass): fsopts = None type = 0 partNum = 0 + primOnly = 0 active = 0 (args, extra) = isys.getopt(args, '', [ 'size=', 'maxsize=', 'grow', 'onpart=', 'ondisk=', 'bytes-per-inode=', 'usepart=', - 'onprimary=', 'active', 'type=']) + 'onprimary=', 'active', 'type=', + 'asprimary']) for n in args: (str, arg) = n @@ -454,6 +456,8 @@ class Kickstart(BaseInstallClass): type = int(arg) elif str == "--active": active = 1 + elif str == "--asprimary": + primOnly = 1 if len(extra) != 1: raise ValueError, "partition command requires one anonymous argument" @@ -465,7 +469,7 @@ class Kickstart(BaseInstallClass): else: self.addToFstab(extra[0], onPart) else: - self.addNewPartition(extra[0], (size, maxSize, grow), (device, partNum), (type, active), fsopts) + self.addNewPartition(extra[0], (size, maxSize, grow), (device, partNum, primOnly), (type, active), fsopts) def __init__(self, file, serial): BaseInstallClass.__init__(self) -- cgit