diff options
author | Mike Fulbright <msf@redhat.com> | 2000-08-23 16:04:15 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2000-08-23 16:04:15 +0000 |
commit | 655402e48991e68086bd020a46ab23d95d184d12 (patch) | |
tree | 66c9748cf08996bdc05e744df40cef2617c2989e /lilo.py | |
parent | 180b43c336e9e41e560fc3724ec1260786636612 (diff) | |
download | anaconda-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.py | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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: |