summaryrefslogtreecommitdiffstats
path: root/lilo.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2000-08-23 16:04:15 +0000
committerMike Fulbright <msf@redhat.com>2000-08-23 16:04:15 +0000
commit655402e48991e68086bd020a46ab23d95d184d12 (patch)
tree66c9748cf08996bdc05e744df40cef2617c2989e /lilo.py
parent180b43c336e9e41e560fc3724ec1260786636612 (diff)
downloadanaconda-655402e48991e68086bd020a46ab23d95d184d12.tar.gz
anaconda-655402e48991e68086bd020a46ab23d95d184d12.tar.xz
anaconda-655402e48991e68086bd020a46ab23d95d184d12.zip
Cover for fact we haven't written out new partitions when todo.py calls LiloConfiguration!!
Diffstat (limited to 'lilo.py')
-rw-r--r--lilo.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/lilo.py b/lilo.py
index 506a70dc8..7fcb015d3 100644
--- a/lilo.py
+++ b/lilo.py
@@ -178,7 +178,16 @@ class LiloConfiguration:
foundDos = 1
isys.makeDevInode(dev, '/tmp/' + dev)
- bootable = isys.checkBoot('/tmp/' + dev)
+ # this can fail for several reasons, main being
+ # they created a DOS partition in disk druid, but
+ # we haven't written new partition table out yet!
+ # this is because we are called from init in todo.py
+ # which is way too early! FIX in future
+ try:
+ bootable = isys.checkBoot('/tmp/' + dev)
+ except:
+ bootable = 0
+
os.unlink('/tmp/' + dev)
if bootable: