summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-25 20:44:25 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-25 20:44:25 +0000
commita7d275514b1236319724b93841fa5e02744884b3 (patch)
tree848a213ffab451ccd97970c7619c0626b0ee473b /bootloader.py
parentd6be8854260eacc12b57b6b4e39c9f4b54af2f78 (diff)
downloadanaconda-a7d275514b1236319724b93841fa5e02744884b3.tar.gz
anaconda-a7d275514b1236319724b93841fa5e02744884b3.tar.xz
anaconda-a7d275514b1236319724b93841fa5e02744884b3.zip
dual boots with nt
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootloader.py b/bootloader.py
index 0af407498..ca5c6e229 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -220,6 +220,8 @@ class bootloaderInfo:
lilo.addImage (sl)
for (label, longlabel, device) in chainList:
+ if ((not label) or (label == "")):
+ continue
try:
(fsType, sl) = lilo.getImage(label)
lilo.delImage(label)
@@ -432,6 +434,8 @@ class x86BootloaderInfo(bootloaderInfo):
f.write('\tinitrd %sinitrd%s.img\n' % (cfPath, kernelTag))
for (label, longlabel, device) in chainList:
+ if ((not longlabel) or (longlabel == "")):
+ continue
f.write('title %s\n' % (longlabel))
f.write('\trootnoverify %s\n' % grubbyPartitionName(device))
f.write('\tmakeactive\n')