[PATCH] Remove the bootloader --lba32 option.

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

 



---
 booty/bootloaderInfo.py |    4 ----
 booty/x86.py            |   26 +++++---------------------
 kickstart.py            |    2 --
 3 files changed, 5 insertions(+), 27 deletions(-)

diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
index 97a5576..a1a27b7 100644
--- a/booty/bootloaderInfo.py
+++ b/booty/bootloaderInfo.py
@@ -267,9 +267,6 @@ class bootloaderInfo:
     def useGrub(self):
         return self.useGrubVal
 
-    def setForceLBA(self, val):
-        pass
-    
     def setPassword(self, val, isCrypted = 1):
         pass
 
@@ -475,7 +472,6 @@ class bootloaderInfo:
         self._configdir = None
         self._configname = None
         self.kernelLocation = "/boot/"
-        self.forceLBA32 = 0
         self.password = None
         self.pure = None
         self.above1024 = 0
diff --git a/booty/x86.py b/booty/x86.py
index 84d2625..5d52c31 100644
--- a/booty/x86.py
+++ b/booty/x86.py
@@ -35,9 +35,6 @@ class x86BootloaderInfo(efiBootloaderInfo):
     def getPassword (self):
         return self.pure
 
-    def setForceLBA(self, val):
-        self.forceLBA32 = val
-        
     def setUseGrub(self, val):
         self.useGrubVal = val
 
@@ -104,8 +101,6 @@ class x86BootloaderInfo(efiBootloaderInfo):
             return
 
         args = "--stage2=/boot/grub/stage2 "
-        if self.forceLBA32:
-            args = "%s--force-lba " % (args,)
 
         cmds = []
         for bootDev in bootDevs:
@@ -345,11 +340,7 @@ class x86BootloaderInfo(efiBootloaderInfo):
                       instRoot + sysconf + '.rpmsave')
         f = open(instRoot + sysconf, 'w+')
         f.write("boot=/dev/%s\n" %(grubTarget,))
-        # XXX forcelba never gets read back...
-        if self.forceLBA32:
-            f.write("forcelba=1\n")
-        else:
-            f.write("forcelba=0\n")
+        f.write("forcelba=0\n")
         f.close()
             
         if not justConfigFile:
@@ -408,8 +399,7 @@ class x86BootloaderInfo(efiBootloaderInfo):
                 config.addEntry("message", message, replace = 0)
 
         if not config.testEntry('lba32'):
-            if self.forceLBA32 or (bl.above1024 and
-                                   rhpl.getArch() != "x86_64"):
+            if bl.above1024 and rhpl.getArch() != "x86_64":
                 config.addEntry("lba32", replace = 0)
 
         return config
@@ -507,11 +497,7 @@ class x86BootloaderInfo(efiBootloaderInfo):
         if not os.access(instRoot + sysconf, os.R_OK):
             f = open(instRoot + sysconf, "w+")
             f.write("boot=%s\n" %(installDev,))
-            # XXX forcelba never gets read back at all...
-            if self.forceLBA32:
-                f.write("forcelba=1\n")
-            else:
-                f.write("forcelba=0\n")
+            f.write("forcelba=0\n")
             f.close()
         
     def write(self, instRoot, bl, kernelList, chainList,
@@ -542,12 +528,10 @@ class x86BootloaderInfo(efiBootloaderInfo):
 
     def getArgList(self):
         args = bootloaderInfo.getArgList(self)
-        
-        if self.forceLBA32:
-            args.append("--lba32")
+
         if self.password:
             args.append("--md5pass=%s" %(self.password))
-        
+
         return args
 
     def __init__(self, storage):
diff --git a/kickstart.py b/kickstart.py
index f99f2ef..2486be6 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -200,8 +200,6 @@ class Bootloader(commands.bootloader.F8_Bootloader):
             if self.appendLine:
                 self.handler.id.bootloader.args.set(self.appendLine)
 
-            self.handler.id.bootloader.setForceLBA(self.forceLBA)
-
             if self.password:
                 self.handler.id.bootloader.setPassword(self.password, isCrypted = 0)
 
-- 
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux