Bug 517394
| Summary: | creator unmount process remove preexisting /etc/mtab -> /proc/mounts symlink | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Joey Boggs <jboggs> |
| Component: | livecd-tools | Assignee: | Jeremy Katz <katzj> |
| Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 11 | CC: | katzj |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-08-17 14:25:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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? |
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): How reproducible: Any kickstart that symlinks /etc/mtab to /proc/mounts Actual results: /etc/mtab -> /proc/mounts is removed Expected results: /etc/mtab -> /proc/mounts still intact Additional info: 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. def unmount(self): """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. """ try: os.unlink(self._instroot + "/etc/mtab") except OSError: pass self.__destroy_selinuxfs() self._undo_bindmounts() self._unmount_instroot()