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