[master 1/1] Remove the restriction that /boot be below 2TB for grub (#1082331)

dashea installerbot-noreply at redhat.com
Fri Apr 24 19:11:13 UTC 2015


From: David Shea <dshea at redhat.com>

If the disk is over 2TiB, it's going to be a gpt disklabel, so the
stage1 bootloader will either be on a biosboot or EFI partition. Letting
stage2 be wherever is probably ok.
---
 pyanaconda/bootloader.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 57a0484..b493043 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -713,7 +713,7 @@ def is_valid_stage2_device(self, device, linux=True, non_linux=False):
         if not self._is_valid_size(device, desc=_(self.stage2_description)):
             valid = False
 
-        if not self._is_valid_location(device,
+        if self.stage2_max_end and not self._is_valid_location(device,
                                        max_end=self.stage2_max_end,
                                        desc=_(self.stage2_description)):
             valid = False
@@ -1413,6 +1413,7 @@ class GRUB2(GRUB):
     _config_dir = "grub2"
     defaults_file = "/etc/default/grub"
     terminal_type = "console"
+    stage2_max_end = None
 
     # requirements for boot devices
     stage2_device_types = ["partition", "mdarray", "lvmlv"]


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/e186b73135539986d30d099871ee9c7703524404


More information about the anaconda-patches mailing list