Red Hat Bugzilla – Bug 496850
[RFE] exclude rootfs from network initscript
Last modified: 2014-03-16 23:18:26 EDT
Description of problem:
During reboot/halt the network initscript does not terminate if the rootfilesystem is dependent on the network that is not nfs.
It would be nice to have it configurable. The attached patch introduces a file /etc/xrootfs that is also taken into account. The filesystem specified there will also yield a network initscript termination if the rootfs equals to the one specified there.
Version-Release number of selected component (if applicable):
make the rootfs dependent on the network and don't use nfs as network filesystem.
Steps to Reproduce:
1. Put the root filesystem on gfs/ocfs2/glusterfs and network will try to umount it and killall processes relying on it (fuser -mvk ..)
network stop kills processes and umounts the rootfilesystem if not nfs.
Other network dependent rootfilesystems should also work.
Created attachment 340517 [details]
This patch implements the /etc/xrootfs approach.
This patch is an approach that makes the network initscript rootfilesystem dependency more configurable and dependent for a file outside the script.
There's existing code for network root devices, see the _netdev/_rnetdev options. Use that instead.
Right. I only didn't use it cause gfs ignores the _netdev mountoption. I'll file a bug for GFS.