diff options
author | Chris Lumens <clumens@redhat.com> | 2007-02-06 15:45:34 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-02-06 15:45:34 +0000 |
commit | 74df4e10f7e26a2777d04c0f735b704379dcbd5a (patch) | |
tree | 15d0e556e6be1d61b096e0115a12ebefbc181243 | |
parent | 4a568c12e2bbcfdfb5420f3eb3f75dacd6388599 (diff) | |
download | anaconda-74df4e10f7e26a2777d04c0f735b704379dcbd5a.tar.gz anaconda-74df4e10f7e26a2777d04c0f735b704379dcbd5a.tar.xz anaconda-74df4e10f7e26a2777d04c0f735b704379dcbd5a.zip |
Add the postscripts step (#227470).
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | installclass.py | 1 | ||||
-rw-r--r-- | kickstart.py | 3 |
3 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2007-02-06 Chris Lumens <clumens@redhat.com> + + * installclass.py (BaseInstallClass.setSteps): Add the postscripts + step (#227470). + + * kickstart.py (runPostScripts): Bail if there's no ksdata. + 2007-02-01 Chris Lumens <clumens@redhat.com> * anaconda: Pass the class to xsetup. diff --git a/installclass.py b/installclass.py index b821fb32e..2c4daf889 100644 --- a/installclass.py +++ b/installclass.py @@ -143,6 +143,7 @@ class BaseInstallClass: "firstboot", "instbootloader", "dopostaction", + "postscripts", "writexconfig", "writeksconfig", "methodcomplete", diff --git a/kickstart.py b/kickstart.py index 5a949a759..059d49133 100644 --- a/kickstart.py +++ b/kickstart.py @@ -850,6 +850,9 @@ def pullRemainingKickstartConfig(ksfile): return None def runPostScripts(anaconda): + if not anaconda.id.ksdata: + return + postScripts = filter (lambda s: s.type == KS_SCRIPT_POST, anaconda.id.ksdata.scripts) |