summaryrefslogtreecommitdiffstats
path: root/lilo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-02-02 17:07:22 +0000
committerMatt Wilson <msw@redhat.com>2001-02-02 17:07:22 +0000
commit09e5e8d51f2df6bf2e6264ce29bdc85c2632c29b (patch)
treeaee155a90bf14ea91c3ac6ce08dce094e7a23814 /lilo.py
parentf6408c6903deb68b8201d28ddc280fbee1590b84 (diff)
downloadanaconda-09e5e8d51f2df6bf2e6264ce29bdc85c2632c29b.tar.gz
anaconda-09e5e8d51f2df6bf2e6264ce29bdc85c2632c29b.tar.xz
anaconda-09e5e8d51f2df6bf2e6264ce29bdc85c2632c29b.zip
don't fall over if e820info isn't there
Diffstat (limited to 'lilo.py')
-rw-r--r--lilo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lilo.py b/lilo.py
index fc497e178..5973d98e3 100644
--- a/lilo.py
+++ b/lilo.py
@@ -7,7 +7,10 @@ import rpm
def needsEnterpriseKernel():
rc = 0
- f = open("/proc/e820info", "r")
+ try:
+ f = open("/proc/e820info", "r")
+ except IOError:
+ return 0
for l in f.readlines():
l = string.split(l)
if l[3] == '(reserved)': continue