summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-19 02:30:06 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-19 02:30:06 +0000
commitea4b1eace9be79cfeefdf38057f448e15d03f13b (patch)
tree7d8a6dcee5579423a1ef34e446fb7c09e62d3e08 /bootloader.py
parent5b0b03307068ba62de866098765f4b82b56e3906 (diff)
downloadanaconda-ea4b1eace9be79cfeefdf38057f448e15d03f13b.tar.gz
anaconda-ea4b1eace9be79cfeefdf38057f448e15d03f13b.tar.xz
anaconda-ea4b1eace9be79cfeefdf38057f448e15d03f13b.zip
a few more bootloader options output and some sanity checking of the root partition
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/bootloader.py b/bootloader.py
index ec128fe38..0fa7d9edd 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -521,6 +521,14 @@ class x86BootloaderInfo(bootloaderInfo):
if not self.useGrubVal:
args.append("--useLilo")
+ if self.forceLBA32:
+ args.append("--lba32")
+ if not self.useLinear:
+ args.append("--nolinear")
+ if self.password:
+ args.append("--md5pass=%s" %(password))
+
+
# XXX add location of bootloader here too
return args
@@ -554,6 +562,9 @@ def availableBootDevices(diskSet, fsset):
devs.append((dev, type))
slash = fsset.getEntryByMountPoint('/')
+ if not slash or not slash.device or not slash.fsystem:
+ raise ValueError, ("Trying to pick boot devices but do not have a "
+ "sane root partition. Aborting install.")
devs.append((slash.device.getDevice(), slash.fsystem.getName()))
devs.sort()