[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Don't write out a duplicate mtab to /mnt/sysimage (#568539).



We write out out in doPreInstall, so there should be no need to still write
one out in doMethodComplete.  The latter one just confuses kickstart %post
scripts these days.
---
 pyanaconda/installmethod.py |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/pyanaconda/installmethod.py b/pyanaconda/installmethod.py
index 17f1d3a..e96c54d 100644
--- a/pyanaconda/installmethod.py
+++ b/pyanaconda/installmethod.py
@@ -45,12 +45,3 @@ def doMethodComplete(anaconda):
     dev = _ejectDevice()
     if dev:
         dev.eject()
-
-    mtab = "/dev/root / ext3 ro 0 0\n"
-    rootDevice = anaconda.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)
-    f.close()
-- 
1.7.1.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]