summaryrefslogtreecommitdiffstats
path: root/pyanaconda/rescue.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2010-06-21 10:11:52 -0400
committerChris Lumens <clumens@redhat.com>2010-06-21 10:22:40 -0400
commit2f9552289ba3edfff5f6d9e1dd1114814e4b2fd8 (patch)
tree080a2ba264fb5e4e23399c368fd709c86c72a1a7 /pyanaconda/rescue.py
parentc4c9634d71aa6316c23e4ad72fb5b59e70c8e007 (diff)
downloadanaconda-2f9552289ba3edfff5f6d9e1dd1114814e4b2fd8.tar.gz
anaconda-2f9552289ba3edfff5f6d9e1dd1114814e4b2fd8.tar.xz
anaconda-2f9552289ba3edfff5f6d9e1dd1114814e4b2fd8.zip
Check before running post scripts on kickstart rescue (#605754, atodorov).
Diffstat (limited to 'pyanaconda/rescue.py')
-rw-r--r--pyanaconda/rescue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyanaconda/rescue.py b/pyanaconda/rescue.py
index f0171b306..868dce195 100644
--- a/pyanaconda/rescue.py
+++ b/pyanaconda/rescue.py
@@ -276,7 +276,7 @@ def runRescue(anaconda):
if not anaconda.rescue_mount:
# the %post should be responsible for mounting all needed file systems
# NOTE: 1st script must be bash or simple python as nothing else might be available in the rescue image
- if anaconda.ksdata:
+ if anaconda.ksdata and anaconda.ksdata.scripts:
from kickstart import runPostScripts
runPostScripts(anaconda)
else: