Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194074 - sys-apps/baselayout-2.0.0-rc4-r1 stops net.* even if / is a net_fs
Summary: sys-apps/baselayout-2.0.0-rc4-r1 stops net.* even if / is a net_fs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-28 11:02 UTC by Stefan Hellermann
Modified: 2007-09-28 12:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Hellermann 2007-09-28 11:02:46 UTC
/etc/conf.d/net.example says:
#       # The default in the script is to test for NFS root and disallow
#       # downing interfaces in that case.  Note that if you specify a
#       # predown() function you will override that logic.  Here it is, in
#       # case you still want it...
#       if is_net_fs /; then
#               eerror "root filesystem is network mounted -- can't stop ${IFAC$
#               return 1
#       fi

this doesn't work.

I've no predown() in my /etc/conf.d/net and net.{eth0,lo} is stopped with nfsroot ... and the machine hangs.

My /etc/conf.d/net:
config_eth0=( "noop" )
I've copied the predown() out of /etc/conf.d/net.example and the machine shutdowns correctly now, but it seems baselayout tries to stop net.{eth0,lo} many times, there are a lot of lines: root filesystem is network mounted -- can't stop eth0.

Is this behavior intended?
As net.eth0 does nothing on startup, it should do nothing on stop, or at least do nothing while stopping with / on a network-fs.

My fstab-entry for /:
192.168.0.14:/netboot / nfs noauto 0 0
noauto, since / is already mounted correctly, trying to mount it again on startup doesn't work because portmap isn't started early enough.

Reproducible: Always

Steps to Reproduce:
1. boot from nfs
2. /etc/init.d/net.eth0 start
3. /etc/init.d/net.eth0 stop
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-09-28 12:49:11 UTC
Fixed in our svn repo. In my tests it only tries to stop net.eth0 once and then continuing, but this is without a real nfs root (I reversed the logic for the test so it should work just as well).