Skip to content

Commit

Permalink
symlink /etc/mtab to /proc/self/mounts (#688277)
Browse files Browse the repository at this point in the history
systemd expects the installed system to have this setup.
  • Loading branch information
bcl committed Mar 21, 2011
1 parent 731ba56 commit 9e431a9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions imgcreate/creator.py
Expand Up @@ -536,7 +536,7 @@ def mount(self, base_on = None, cachedir = None):

self.__create_minimal_dev()

os.symlink("../proc/mounts", self._instroot + "/etc/mtab")
os.symlink("/proc/self/mounts", self._instroot + "/etc/mtab")

self.__write_fstab()

Expand All @@ -548,11 +548,6 @@ def unmount(self):
from the install root.
"""
try:
os.unlink(self._instroot + "/etc/mtab")
except OSError:
pass

self.__destroy_selinuxfs()

self._undo_bindmounts()
Expand Down

0 comments on commit 9e431a9

Please sign in to comment.