[PATCH 2/2] don't display stage2 missing error as well if the real problem is stage1

Adam Williamson awilliam at redhat.com
Fri Jan 31 02:34:57 UTC 2014


As things stand, if you fail the stage1 check for any reason, I think you will
always also see the "missing stage2" error message - "You have not created a
bootable partition." - even though the problem is really the missing stage1.
This should only display the missing stage2 error if stage1 is OK.
---
 blivet/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/__init__.py b/blivet/__init__.py
index d411bc6..ddc575f 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -1637,7 +1637,7 @@ class Blivet(object):
                 warnings.extend(self.bootloader.warnings)
 
             stage2 = self.bootloader.stage2_device
-            if not stage2:
+            if stage1 and not stage2:
                 errors.append(_("You have not created a bootable partition."))
             else:
                 self.bootloader.is_valid_stage2_device(stage2)
-- 
1.8.5.3



More information about the anaconda-patches mailing list