summaryrefslogtreecommitdiffstats
path: root/installmethod.py
diff options
context:
space:
mode:
Diffstat (limited to 'installmethod.py')
-rw-r--r--installmethod.py14
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()