[rhel7/f20/master 1/3] Set bootloader default location to mbr in constructor (#916529)

mulhern amulhern at redhat.com
Thu Oct 31 14:35:28 UTC 2013


Resolves: rhbz#916529

Previously bootloader location defaulted to approximately none for a
kickstart install if there was no bootloader line in the file.
If there was a bootloader line in the file, it defaulted to "mbr".
For an interactive install, location was explicitly set
to "mbr" by the initial kickstart file.

Now, the default is "mbr" regardless of how the install is started.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 pyanaconda/kickstart.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index b206231..c9ea177 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -260,6 +260,11 @@ class AutoPart(commands.autopart.F20_AutoPart):
         doAutoPartition(storage, ksdata)
 
 class Bootloader(commands.bootloader.F19_Bootloader):
+
+    def __init__(self, *args, **kwargs):
+        commands.bootloader.F19_Bootloader.__init__(self, *args, **kwargs)
+        self.location = "mbr"
+
     def execute(self, storage, ksdata, instClass):
         if flags.imageInstall and blivet.arch.isS390():
             self.location = "none"
-- 
1.8.3.1



More information about the anaconda-patches mailing list