diff options
author | David Lehman <dlehman@redhat.com> | 2009-02-23 12:21:24 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-02-23 12:21:24 -0600 |
commit | e1a7fe9887886044b07587b3ec2caa2ff53ebfb2 (patch) | |
tree | 447c0c31e503a74f9247d36c2947d8a483f68836 /installmethod.py | |
parent | 715e529c7ae2742ff57f7b9eba055e92e8077d82 (diff) | |
download | anaconda-e1a7fe9887886044b07587b3ec2caa2ff53ebfb2.tar.gz anaconda-e1a7fe9887886044b07587b3ec2caa2ff53ebfb2.tar.xz anaconda-e1a7fe9887886044b07587b3ec2caa2ff53ebfb2.zip |
Updates to make existing code use the new storage module.
Diffstat (limited to 'installmethod.py')
-rw-r--r-- | installmethod.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/installmethod.py b/installmethod.py index ce1dd7f99..d62201583 100644 --- a/installmethod.py +++ b/installmethod.py @@ -47,9 +47,9 @@ def doMethodComplete(anaconda): isys.ejectCdrom(dev) mtab = "/dev/root / ext3 ro 0 0\n" - for ent in anaconda.id.fsset.entries: - if ent.mountpoint == "/": - mtab = "/dev/root / %s ro 0 0\n" %(ent.fsystem.name,) + rootDevice = anaconda.id.storage.rootDevice + if rootDevice: + mtab = "/dev/root / %s ro 0 0\n" % rootDevice.format.type f = open(anaconda.rootPath + "/etc/mtab", "w+") f.write(mtab) |