diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-10 21:43:18 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-10 21:43:18 +0000 |
commit | ac19dbdc6ec8e3056694b3c4cc3a364f7331dae8 (patch) | |
tree | b5c4e3ec3b06343073d56cb59802250d126f69c8 /packages.py | |
parent | 8c5ee8c03c7c7c29a64ec86ad50e88da4e407f04 (diff) | |
download | anaconda-ac19dbdc6ec8e3056694b3c4cc3a364f7331dae8.tar.gz anaconda-ac19dbdc6ec8e3056694b3c4cc3a364f7331dae8.tar.xz anaconda-ac19dbdc6ec8e3056694b3c4cc3a364f7331dae8.zip |
add a step which takes care of ensuring that any needed things for firstboot get done. generally a no-op except for kickstart which has different defaults. also, move dopostaction back to being the last thing we do
Diffstat (limited to 'packages.py')
-rw-r--r-- | packages.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/packages.py b/packages.py index be51bcd27..1d4bee5fc 100644 --- a/packages.py +++ b/packages.py @@ -48,7 +48,19 @@ def queryUpgradeContinue(intf, dir): return DISPATCH_FORWARD def doPostAction(id, instPath): - id.instClass.postAction(instPath, flags.serial) + id.instClass.postAction(instPath, flags.serial) + +def firstbootConfiguration(id, instPath): + if id.firstboot == FIRSTBOOT_RECONFIG: + f = open(instPath + '/etc/reconfigSys', 'w+') + f.close() + elif id.firstboot == FIRSTBOOT_SKIP: + f = open(instPath + '/etc/sysconfig/firstboot', 'w+') + f.write('RUN_FIRSTBOOT=NO') + f.close() + + return + def writeConfiguration(id, instPath): log("Writing main configuration") |