[PATCH] Fix NameError traceback setting up bootloader in EFI installs

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

 



Gah. I failed to capture the complete traceback, but a quick
inspection of addNewEfiEntry() shows that there's no global 'storage'
name defined here. I'm guessing it's supposed to be 'self.storage' instead.
---
 booty/bootloaderInfo.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
index 0bf295d..b50a11a 100644
--- a/booty/bootloaderInfo.py
+++ b/booty/bootloaderInfo.py
@@ -558,9 +558,9 @@ class efiBootloaderInfo(bootloaderInfo):
 
     def addNewEfiEntry(self, instRoot):
         try:
-            bootdev = storage.fsset.mountpoints["/boot/efi"]
+            bootdev = self.storage.fsset.mountpoints["/boot/efi"]
         except KeyError:
-            bootdev = storage.devicetree.getDeviceByName("sda1")
+            bootdev = self.storage.devicetree.getDeviceByName("sda1")
 
         link = "%s%s/%s" % (instRoot, "/etc/", self.configname)
         if not os.access(link, os.R_OK):
-- 
1.6.2.2

_______________________________________________
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