diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-02-12 09:58:22 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-02-12 11:30:50 -1000 |
commit | 4dd3e4a3e98825c1d542bb03a58724a2db098765 (patch) | |
tree | 7b886e03e469780b8735cb52cfb5f11337f2febb /bootloader.py | |
parent | eeed969cbe7b8fb12d3ab70c772817de1407f460 (diff) | |
download | anaconda-4dd3e4a3e98825c1d542bb03a58724a2db098765.tar.gz anaconda-4dd3e4a3e98825c1d542bb03a58724a2db098765.tar.xz anaconda-4dd3e4a3e98825c1d542bb03a58724a2db098765.zip |
Use parted.Disk.getPartitionByPath()
Removed the parted.getPartitionByName() function. There is now
a method on parted.Disk called getPartitionByPath() which provides
the same functionality, but only works on a single Disk.
Diffstat (limited to 'bootloader.py')
-rw-r--r-- | bootloader.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/bootloader.py b/bootloader.py index 58d20b39d..b78cfd701 100644 --- a/bootloader.py +++ b/bootloader.py @@ -121,15 +121,6 @@ def bootloaderSetupChoices(anaconda): elif choices and choices.has_key("boot"): anaconda.id.bootloader.setDevice(choices["boot"][0]) - - bootDev = anaconda.id.fsset.getEntryByMountPoint("/") - if not bootDev: - bootDev = anaconda.id.fsset.getEntryByMountPoint("/boot") - part = parted.getPartitionByName(bootDev.device.getDevice()) - if part and part.geometry.device.endSectorToCylinder(part.geometry.end) >= 1024: - anaconda.id.bootloader.above1024 = 1 - - def writeBootloader(anaconda): def dosync(): isys.sync() |