Bug 496850

Summary: [RFE] exclude rootfs from network initscript
Product: [Fedora] Fedora Reporter: Marc Grimme <grimme>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: adam, hlawatschek, notting, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-21 22:22:41 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:
Attachments:
Description Flags
This patch implements the /etc/xrootfs approach. none

Description Marc Grimme 2009-04-21 13:11:42 UTC
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:

Comment 1 Marc Grimme 2009-04-21 13:13:57 UTC
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.

Comment 2 Bill Nottingham 2009-04-21 22:22:41 UTC
There's existing code for network root devices, see the _netdev/_rnetdev options. Use that instead.

Comment 3 Marc Grimme 2009-04-22 06:32:11 UTC
Right. I only didn't use it cause gfs ignores the _netdev mountoption. I'll file a bug for GFS.