diff options
author | Matt Wilson <msw@redhat.com> | 2001-02-02 17:07:22 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-02-02 17:07:22 +0000 |
commit | 09e5e8d51f2df6bf2e6264ce29bdc85c2632c29b (patch) | |
tree | aee155a90bf14ea91c3ac6ce08dce094e7a23814 | |
parent | f6408c6903deb68b8201d28ddc280fbee1590b84 (diff) | |
download | anaconda-09e5e8d51f2df6bf2e6264ce29bdc85c2632c29b.tar.gz anaconda-09e5e8d51f2df6bf2e6264ce29bdc85c2632c29b.tar.xz anaconda-09e5e8d51f2df6bf2e6264ce29bdc85c2632c29b.zip |
don't fall over if e820info isn't there
-rw-r--r-- | lilo.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |