diff options
author | Peter Jones <pjones@redhat.com> | 2012-09-05 11:51:04 -0400 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2012-09-05 17:04:52 -0400 |
commit | c1c1811764c064a83efc7fa273d401535f65b19f (patch) | |
tree | 05d52d07df7234270f7aea0dd5bfbb9a6b91c514 /pyanaconda/bootloader.py | |
parent | 08d3fb55472404d6fc181baed1f5406e4782e102 (diff) | |
download | anaconda-c1c1811764c064a83efc7fa273d401535f65b19f.tar.gz anaconda-c1c1811764c064a83efc7fa273d401535f65b19f.tar.xz anaconda-c1c1811764c064a83efc7fa273d401535f65b19f.zip |
Use self.stage1_device where appropriate in EFIGRUB.
This gets rid of storage references.
Related: rhbz#853308
Diffstat (limited to 'pyanaconda/bootloader.py')
-rw-r--r-- | pyanaconda/bootloader.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py index 04b4066d9..e9ffbf1a6 100644 --- a/pyanaconda/bootloader.py +++ b/pyanaconda/bootloader.py @@ -1592,15 +1592,14 @@ class EFIGRUB(GRUB2): return ret.replace('/', '\\') def add_efi_boot_target(self): - boot_efi = self.storage.mountpoints["/boot/efi"] - if boot_efi.type == "partition": - boot_disk = boot_efi.disk - boot_part_num = boot_efi.partedPartition.number - elif boot_efi.type == "mdarray": + if self.stage1_device.type == "partition": + boot_disk = self.stage1_device.disk + boot_part_num = self.stage1_device.partedPartition.number + elif self.stage1_device.type == "mdarray": # FIXME: I'm just guessing here. This probably needs the full # treatment, ie: multiple targets for each member. - boot_disk = boot_efi.parents[0].disk - boot_part_num = boot_efi.parents[0].partedPartition.number + boot_disk = self.stage1_device.parents[0].disk + boot_part_num = self.stage1_device.parents[0].partedPartition.number boot_part_num = str(boot_part_num) rc = self.efibootmgr("-c", "-w", "-L", productName, |