diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-10 22:12:07 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-10 22:12:07 +0000 |
commit | dee57516672d376f60bad259b3feef2359eae96e (patch) | |
tree | e0bb1f2892b44068867498821e18d166ab2a8352 /kickstart.py | |
parent | ac19dbdc6ec8e3056694b3c4cc3a364f7331dae8 (diff) | |
download | anaconda-dee57516672d376f60bad259b3feef2359eae96e.tar.gz anaconda-dee57516672d376f60bad259b3feef2359eae96e.tar.xz anaconda-dee57516672d376f60bad259b3feef2359eae96e.zip |
kickstart directive can control firstboot now
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kickstart.py b/kickstart.py index 5ed3c9927..e42f24b02 100644 --- a/kickstart.py +++ b/kickstart.py @@ -288,6 +288,24 @@ class KickstartBase(BaseInstallClass): def doLilo (self, id, args): self.doBootloader(id, args, useLilo = 1) + + def doFirstboot(self, id, args): + (args, extra) = isys.getopt(args, '', + ['reconfig', 'enable', 'disable']) + + fb = FIRSTBOOT_SKIP + + for n in args: + (str, arg) = n + if str == '--reconfig': + fb = FIRSTBOOT_RECONFIG + elif str == '--enable': + fb = FIRSTBOOT_DEFAULT + elif str == '--disable': + fb = FIRSTBOOT_SKIP + + id.firstboot = fb + def doLiloCheck (self, id, args): drives = isys.hardDriveDict ().keys() @@ -513,6 +531,7 @@ class KickstartBase(BaseInstallClass): "zerombr" : self.doZeroMbr , "interactive" : self.doInteractive , "autostep" : self.doAutoStep , + "firstboot" : self.doFirstboot , } packages = [] @@ -1038,6 +1057,7 @@ class KickstartBase(BaseInstallClass): self.installType = "install" self.id = id + self.id.firstboot = FIRSTBOOT_SKIP # parse the %pre self.readKickstart(id, self.file, parsePre = 1) |