summaryrefslogtreecommitdiffstats
path: root/lilo.py
diff options
context:
space:
mode:
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: