summaryrefslogtreecommitdiffstats
path: root/installmethod.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-04-28 03:46:19 +0000
committerJeremy Katz <katzj@redhat.com>2005-04-28 03:46:19 +0000
commit4f219de9a73969308f39caf16be4d3943da4451b (patch)
treeb8253cfb6355e629bef9ff328369d4b822f2300b /installmethod.py
parentb90c99a415228fdf1fa1bf0d7a326388c41f0073 (diff)
downloadanaconda-4f219de9a73969308f39caf16be4d3943da4451b.tar.gz
anaconda-4f219de9a73969308f39caf16be4d3943da4451b.tar.xz
anaconda-4f219de9a73969308f39caf16be4d3943da4451b.zip
2005-04-27 Jeremy Katz <katzj@redhat.com>
* installmethod.py (doMethodComplete): Figure out rootfs better * dispatch.py (installSteps): Pass id.fsset to methodcomplete.
Diffstat (limited to 'installmethod.py')
-rw-r--r--installmethod.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/installmethod.py b/installmethod.py
index f6935c5ae..f2b153598 100644
--- a/installmethod.py
+++ b/installmethod.py
@@ -119,18 +119,13 @@ class InstallMethod:
# this handles any cleanup needed for the method. it occurs *very* late
# (ie immediately before the congratulations screen). main use right now
# is ejecting the cdrom
-def doMethodComplete(method):
+def doMethodComplete(method, fsset):
method.ejectCD()
- f = open(method.rootPath + "/etc/mtab", "r")
- lines = f.readlines()
- f.close()
-
mtab = "/dev/root / ext3 ro 0 0\n"
- for line in lines:
- values = line.split()
- if values[1] == '/':
- mtab = "/dev/root / %s ro 0 0\n" % (values[2],)
+ for ent in fsset.entries:
+ if ent.mountpoint == "/":
+ mtab = "/dev/root / %s ro 0 0\n" %(ent.fsystem.name,)
f = open(method.rootPath + "/etc/mtab", "w+")
f.write(mtab)