Bug 496850 - [RFE] exclude rootfs from network initscript
Summary: [RFE] exclude rootfs from network initscript
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-04-21 13:11 UTC by Marc Grimme
Modified: 2014-03-17 03:18 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-04-21 22:22:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
This patch implements the /etc/xrootfs approach. (810 bytes, patch)
2009-04-21 13:13 UTC, Marc Grimme
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.