Summary: | sys-apps/openrc: The root script does not work correctly if root or any filesystems it remounts are nfs | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | pchrist |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugzilla.redhat.com/show_bug.cgi?id=537969#c18 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | patch for root init script (NFS /) |
Description
Dennis Schridde
2012-07-25 08:42:17 UTC
I am duping this to your original bug. If you disagree, please feel free to re-open. *** This bug has been marked as a duplicate of bug 427996 *** This bug actually applies if any filesystem the root script attempts to remount is nfs or nfsv4, so I am generalizing it. Since bug #427996 was fixed by requiring the user to use nfsmount instead of netmount, can this be fixed in a similar way? Is it possible to make root depend on nfsmount if / is nfs? Created attachment 342306 [details, diff]
patch for root init script (NFS /)
I had the same problem and fixed it with the cc'd patch. It seems that mount calls mount.nfs which can do "remount,rw" only without passing other options to -o . It also needs the absolute path of the remote directory (at least, that's how it worked for me).
@William, this is a nasty hack, and I haven't tested it thoroughly. Didn't find time to check the code inside util-linux and nfs-utils for better alternatives yet.
|