Description of problem: During reboot/halt the network initscript does not terminate if the rootfilesystem is dependent on the network that is not nfs. Idea: 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): fedora,rhel5 How reproducible: 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 ..) 2. 3. Actual results: network stop kills processes and umounts the rootfilesystem if not nfs. Expected results: Other network dependent rootfilesystems should also work. Additional info:
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.