summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-30 13:00:17 -0400
committerChris Lumens <clumens@redhat.com>2009-03-31 10:22:11 -0400
commitdc8cbf05ee52ab1b03f3ac1ab24fd8667d99865b (patch)
tree904a062baa2a7d2a3d1b581310302c39203f194d /rescue.py
parentedaf57a7fe65ffb111f16b9ea91448d0979d2384 (diff)
downloadanaconda-dc8cbf05ee52ab1b03f3ac1ab24fd8667d99865b.tar.gz
anaconda-dc8cbf05ee52ab1b03f3ac1ab24fd8667d99865b.tar.xz
anaconda-dc8cbf05ee52ab1b03f3ac1ab24fd8667d99865b.zip
If there are no installs to rescue via kickstart, display an error.
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/rescue.py b/rescue.py
index 7d480e7f1..6938e354b 100644
--- a/rescue.py
+++ b/rescue.py
@@ -398,6 +398,9 @@ def runRescue(anaconda, instClass):
else:
if anaconda.isKickstart:
log.info("No Linux partitions found")
+ screen.finish()
+ print(_("You don't have any Linux partitions. Rebooting.\n"))
+ sys.exit(0)
else:
ButtonChoiceWindow(screen, _("Rescue Mode"),
_("You don't have any Linux partitions. Press "