diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-02-12 09:47:50 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-02-12 11:30:18 -1000 |
commit | 8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2 (patch) | |
tree | 8fda8f60e5d25677ffbc632aab75ebbaa1dd23f4 /bootloader.py | |
parent | c4e53f5b148ec8cc78ea0ba69239fa2734182298 (diff) | |
download | anaconda-8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2.tar.gz anaconda-8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2.tar.xz anaconda-8e8efbfb0d49191c811d9f5eef6f00ed9bf6a6e2.zip |
Use device property on Disk and Geometry objects.
The property name for Device objects on a Disk or Geometry is
'device', not 'dev'.
Diffstat (limited to 'bootloader.py')
-rw-r--r-- | bootloader.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bootloader.py b/bootloader.py index 301a8dd0c..39102fedf 100644 --- a/bootloader.py +++ b/bootloader.py @@ -120,22 +120,22 @@ def bootloaderSetupChoices(anaconda): anaconda.id.bootloader.setDevice(choices["mbr"][0]) 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.geom.dev.endSectorToCylinder(part.geom.end) >= 1024: + if part and part.geometry.device.endSectorToCylinder(part.geometry.end) >= 1024: anaconda.id.bootloader.above1024 = 1 - + def writeBootloader(anaconda): def dosync(): isys.sync() isys.sync() isys.sync() - + justConfigFile = not flags.setupFilesystems if anaconda.id.bootloader.defaultDevice == -1: |