summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-06 15:53:23 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-06 15:53:23 +0000
commite6544a4cf2e02415870e6aa0f60537e4895d8bb3 (patch)
tree02327c3eef070c1c58e04b7a7c8afab7a90a96e6 /bootloader.py
parent8b6cbbd31b5c9eac5d16da6b2ee6eb4bae7a81b3 (diff)
downloadanaconda-e6544a4cf2e02415870e6aa0f60537e4895d8bb3.tar.gz
anaconda-e6544a4cf2e02415870e6aa0f60537e4895d8bb3.tar.xz
anaconda-e6544a4cf2e02415870e6aa0f60537e4895d8bb3.zip
fix bugs pychecker found...
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/bootloader.py b/bootloader.py
index 3144f43d9..121a51490 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -203,7 +203,7 @@ class bootloaderInfo:
(fsType, sl) = lilo.getImage(label)
lilo.delImage(label)
except IndexError:
- sl = LiloConfigFile(imageType = "other", path = device)
+ sl = LiloConfigFile(imageType = "other", path = "/dev/%s" %(device))
sl.addEntry("optional")
sl.addEntry("label", label)
@@ -239,18 +239,6 @@ class bootloaderInfo:
return lilo
- lilo.write(instRoot + self.configfile, perms = self.perms)
-
- if not justConfigFile:
- # throw away stdout, catch stderr
- str = iutil.execWithCapture(instRoot + '/sbin/lilo' ,
- [ "lilo", "-r", instRoot ],
- catchfd = 2, closefd = 1)
- else:
- str = ""
-
- return str
-
def write(self, instRoot, fsset, bl, langs, kernelList, chainList,
defaultDev, justConfig):