summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-02-12 09:58:22 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-02-12 11:30:50 -1000
commit4dd3e4a3e98825c1d542bb03a58724a2db098765 (patch)
tree7b886e03e469780b8735cb52cfb5f11337f2febb /bootloader.py
parenteeed969cbe7b8fb12d3ab70c772817de1407f460 (diff)
downloadanaconda-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.py9
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()