Bug 487604
Summary: | readonlyroot and updating /etc/mtab | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Brian J. Murrell <brian> |
Component: | util-linux-ng | Assignee: | Karel Zak <kzak> |
Status: | CLOSED WONTFIX | QA Contact: | Ben Levenson <benl> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 6.0 | CC: | atodorov, notting, steve.rotolo |
Target Milestone: | rc | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2010-06-09 11:50:16 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: | |||
Bug Depends On: | 214891 | ||
Bug Blocks: | 513462 |
Description
Brian J. Murrell
2009-02-26 22:24:38 UTC
Hrm. I tried to close this as a duplicate of 214819 but it seems, even though I opened the bug, I cannot close it. Somebody please close this as a dup of 214819. Thanx. *** This bug has been marked as a duplicate of bug 214819 *** (In reply to comment #1) > > Somebody please close this as a dup of 214819. Oops. A little lysdexic this morning. That should be 214891, not ...19. My apologies. *** This bug has been marked as a duplicate of bug 214891 *** This is incorrectly closed as duplicate. 214891 is against rawhide not RHEL. Moving to RHEL6 for tracking purposes as per: https://bugzilla.redhat.com/show_bug.cgi?id=214891#c26 This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. Perhaps a good solution is to have mount write mtab locks under /var/lock instead of in /etc. /var/lock is already in /etc/rwtab. Then one would not have to use mount -n, and actually get a usable /etc/mtab file. I forgot to mention that I am having this problem on RHEL 5.4. And there seems to be a fair number of init.d scripts that have this problem. /var/lock isn't necessarily there during rc.sysinit. When READONLY root is used with the default /etc/rwtab, rc.sysinit creates /var/lock as a bind-mount into /var/lib/stateless/writable. I believe all mounts in rc.sysinit prior to that are done with mount -n anyway. I guess the problem is when READONLY is not set, huh? Then something may get mounted on /var later... Correct. Well, if init scripts use "mount -n" then we can close this bug, right? I'm not sure what change is expected in mount(8). For more details why we cannot move the mtab lock file see #214891. Oof, it seems weird to have to every time we call mount to try and decide whether or not we should pass -n, depending on the state of /etc. Honestly... union mounts are the way to go. |