summaryrefslogtreecommitdiffstats
path: root/lilo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-06-05 04:52:18 +0000
committerMatt Wilson <msw@redhat.com>2000-06-05 04:52:18 +0000
commit10d0359a0036dc3ae00d4a018d96b57ef19f76dc (patch)
tree3eedbeb2682161de34521ac604d48fb079a3c2be /lilo.py
parent186fef98e666786b9881b2c154ea60de8a217b6d (diff)
downloadanaconda-10d0359a0036dc3ae00d4a018d96b57ef19f76dc.tar.gz
anaconda-10d0359a0036dc3ae00d4a018d96b57ef19f76dc.tar.xz
anaconda-10d0359a0036dc3ae00d4a018d96b57ef19f76dc.zip
access method for paths
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 f3334d5c3..eaf1f1445 100644
--- a/lilo.py
+++ b/lilo.py
@@ -64,6 +64,9 @@ class LiloConfigFile:
l.append(config.getEntry('label'))
return l
+ def getPath (self):
+ return self.path
+
def write(self, file, perms = 0644):
f = open(file, "w")
f.write(self.__repr__())
@@ -238,7 +241,7 @@ class LiloConfiguration:
(fsType, sl) = lilo.getImage(label)
if fsType == "other": continue
- if not os.access(instRoot + label.getPath(), os.R_OK):
+ if not os.access(instRoot + sl.getPath(), os.R_OK):
lilo.delImage(image)
bootpart = fstab.getBootDevice()