[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/3] If there are no installs to rescue via kickstart, display an error.



---
 rescue.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/rescue.py b/rescue.py
index 7d480e7..6938e35 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 "
-- 
1.6.1.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]