diff options
author | Peter Jones <pjones@redhat.com> | 2005-04-28 03:38:32 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2005-04-28 03:38:32 +0000 |
commit | e7bd49bc1908822e654004390f72e2a356bad336 (patch) | |
tree | 52fb1259345b12d4d71cfcd75c053e8fbe69c555 /installmethod.py | |
parent | 19da20e671c97c8037bcdd832427206abeca042f (diff) | |
download | anaconda-e7bd49bc1908822e654004390f72e2a356bad336.tar.gz anaconda-e7bd49bc1908822e654004390f72e2a356bad336.tar.xz anaconda-e7bd49bc1908822e654004390f72e2a356bad336.zip |
write an mtab with some basic info when we're done installing
Diffstat (limited to 'installmethod.py')
-rw-r--r-- | installmethod.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/installmethod.py b/installmethod.py index 92e6e29f4..f6935c5ae 100644 --- a/installmethod.py +++ b/installmethod.py @@ -121,3 +121,17 @@ class InstallMethod: # is ejecting the cdrom def doMethodComplete(method): 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],) + + f = open(method.rootPath + "/etc/mtab", "w+") + f.write(mtab) + f.close() |