Red Hat Bugzilla – Bug 517394
creator unmount process remove preexisting /etc/mtab -> /proc/mounts symlink
Last modified: 2009-08-17 10:25:15 EDT
Description of problem:
When creating a livecd based image with a symlink from /etc/mtab to /proc/mounts it is removed during the build process
Version-Release number of selected component (if applicable):
Any kickstart that symlinks /etc/mtab to /proc/mounts
/etc/mtab -> /proc/mounts is removed
/etc/mtab -> /proc/mounts still intact
Under the ImageCreator class in creator.py
If you comment out: os.unlink(self._instroot + "/etc/mtab") the symlink is left intact. I'm not entirely sure of the case for it being removed but maybe a check to see if the link was created by something other than livecd-creator and leave intact if so.
"""Unmounts the target filesystem.
The ImageCreator class detaches the system from the install root, but
other subclasses may also detach the loopback mounted filesystem image
from the install root.
os.unlink(self._instroot + "/etc/mtab")
There's no way really to tell if it was created otherwise -- livecd-creator always does create it
What's the use case you have for wanting it on the later image?