summaryrefslogtreecommitdiffstats
path: root/pyanaconda/rescue.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2011-01-19 19:50:52 -0600
committerDavid Lehman <dlehman@redhat.com>2011-01-20 11:22:10 -0600
commit54483dbba26a342d2e5210b79e3cdc0d05f04c91 (patch)
tree0387cfa2126fa6a4c66901bac4911cc3a196ae15 /pyanaconda/rescue.py
parent94d5171db30561941e86aed1578ec539b0da589c (diff)
downloadanaconda-54483dbba26a342d2e5210b79e3cdc0d05f04c91.tar.gz
anaconda-54483dbba26a342d2e5210b79e3cdc0d05f04c91.tar.xz
anaconda-54483dbba26a342d2e5210b79e3cdc0d05f04c91.zip
Make /etc/mtab a symlink to /proc/self/mounts. (#670381)
Diffstat (limited to 'pyanaconda/rescue.py')
-rw-r--r--pyanaconda/rescue.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/pyanaconda/rescue.py b/pyanaconda/rescue.py
index 181fe2687..e8a25a276 100644
--- a/pyanaconda/rescue.py
+++ b/pyanaconda/rescue.py
@@ -136,21 +136,6 @@ class RescueInterface(InstallInterfaceBase):
InstallInterfaceBase.__init__(self)
self.screen = screen
-# XXX grub-install is stupid and uses df output to figure out
-# things when installing grub. make /etc/mtab be at least
-# moderately useful.
-def makeMtab(instPath, storage):
- try:
- f = open(instPath + "/etc/mtab", "w+")
- except IOError, e:
- log.info("failed to open /etc/mtab for write: %s" % e)
- return
-
- try:
- f.write(storage.mtab)
- finally:
- f.close()
-
def makeFStab(instPath = ""):
if os.access("/proc/mounts", os.R_OK):
f = open("/proc/mounts", "r")
@@ -509,7 +494,7 @@ def runRescue(anaconda):
msgStr = ""
if rootmounted and not readOnly:
- makeMtab(anaconda.rootPath, anaconda.storage)
+ anaconda.storage.makeMtab(root=anaconda.rootPath)
try:
makeResolvConf(anaconda.rootPath)
except Exception, e: