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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux