Summary: | sys-apps/openrc-0.12.4: netmount doesn't netmount | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Patrick Lauer <patrick> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | zerochaos |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 520144 | ||
Attachments: | netmount.patch |
Description
Patrick Lauer
![]() + ebegin 'Mounting network filesystems' * Mounting network filesystems ... + mount -at afs,ceph,cifs,coda,davfs,fuse,fuse.sshfs,gfs,glusterfs,lustre,ncpfs,ocfs2,shfs,smbfs + rc=0 + '[' Linux = Linux ']' + mount -a -O _netdev + rc=0 so, nfs is not in the explicit list of network FS, and mount -a -O _netdev doesn't find it. mount -a does mount it. for x in $net_fs_list $extra_net_fs_list; do case "$x" in nfs|nfs4) continue ;; esac fs="$fs${fs:+,}$x" done ... the init script goes out of its way to prune nfs from the list of network FS ? Eh what? :D So, it might work if I changed fstab options from "defaults" to "defaults,_netdev" - but why would I do that? """ _netdev The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system). """ (from the manpage) And why do we have an independent nfsmount init script? Created attachment 380504 [details, diff]
netmount.patch
Eventually, I would like to take this route. On Linux, we don't need an
explicit network fs type list, because we should rely on -O _netdev.
Try this patch and make sure the nfs services are started before netmount.
Let me know what that does.
This might be controversial since it relies on -O _netdev which
busybox's mount command doesn't support.
netmount init script doesn't handle nfs, nfsmount init script does. This has been this way for some time now... The proposed patch will certainly cause issues. A fix for this has been implemented in commit 85da4a5 which will be included in OpenRC-0.14. This bug was caused by an incorrect fix for bug #427996. The code that started the daemons should have been removed, but not the code that mounted the nfs file systems. |