Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PXE, OpenRC, Failed to shutdown network interfaces
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sidamos
Apprentice
Apprentice


Joined: 16 Dec 2007
Posts: 219

PostPosted: Wed Aug 10, 2011 11:22 am    Post subject: PXE, OpenRC, Failed to shutdown network interfaces Reply with quote

HI!

After updating my system to baselayout2/OpenRC etc, I get network interface errors during shutdown. The system boots via PXE/NFS.

Code:

* Bringing down interface eth0
*   root filesystem is network mounted -- can't stop eth0
* ERROR: net.eth0 failed to stop
 * Bringing down interface l0
*   root filesystem is network mounted -- can't stop l0
* ERROR: net.lo failed to stop


net.eth0 is NOT in any runlevel. net.lo is in runlevel "boot".

/etc/.conf.d/net:
config_eth0="noop"

How do I prevent shutting down the network interfaces or logging of this error?

Any hints would be greatly appreciated!

Thomas
Back to top
View user's profile Send private message
redagadir
n00b
n00b


Joined: 06 Aug 2011
Posts: 29

PostPosted: Fri Aug 12, 2011 1:47 am    Post subject: Reply with quote

the interface is normally brought up at pxe boot, it shouldn't be brought down at all, only reboot.

check if you have a nonetwork directive in /etc/runlevels , for you case, all your runlevels need networking...


Last edited by redagadir on Wed Dec 21, 2011 9:08 am; edited 1 time in total
Back to top
View user's profile Send private message
sidamos
Apprentice
Apprentice


Joined: 16 Dec 2007
Posts: 219

PostPosted: Sat Aug 20, 2011 2:20 pm    Post subject: Reply with quote

I have a file:
/etc/runlevels/nonetwork/local
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Fri Mar 16, 2012 8:51 am    Post subject: Reply with quote

try adding rc_hotplug="!net.*" to /etc/rc.conf.

It will stop the boot scripts from autostarting eth0 when it finds it.
As eth0 has already been started (when you get an IP via DHCP/PXE) you don't need to start it again.
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 189
Location: Zurich, Switzerland

PostPosted: Fri Mar 16, 2012 11:08 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-913964.html
http://thread.gmane.org/gmane.linux.gentoo.devel/75065/focus=75248
after the openrc 9.9.0 the netmount or sshd or any other "need net" service is trigerring services which "provide net"
and i think the same behavior is shutting down the services

so check init scripts that have
Code:
need net

and
Code:
provide net


because that is messing with you
Back to top
View user's profile Send private message
sidamos
Apprentice
Apprentice


Joined: 16 Dec 2007
Posts: 219

PostPosted: Sun Mar 18, 2012 9:41 am    Post subject: Reply with quote

richard.scott wrote:
try adding rc_hotplug="!net.*" to /etc/rc.conf.

It will stop the boot scripts from autostarting eth0 when it finds it.
As eth0 has already been started (when you get an IP via DHCP/PXE) you don't need to start it again.


Thanks, but it did not help. Still getting the same error messages during shutdown.
Back to top
View user's profile Send private message
sidamos
Apprentice
Apprentice


Joined: 16 Dec 2007
Posts: 219

PostPosted: Sun Mar 18, 2012 9:41 am    Post subject: Reply with quote

Kaso_da_Zmok wrote:
after the openrc 9.9.0 the netmount or sshd or any other "need net" service is trigerring services which "provide net"
and i think the same behavior is shutting down the services


I am using openrc 0.9.8.
Back to top
View user's profile Send private message
KoichiSenada
n00b
n00b


Joined: 05 Jul 2012
Posts: 12

PostPosted: Mon Jul 09, 2012 11:25 am    Post subject: Reply with quote

So whether is that a bug of the system for network booted clients?
How to configure it to dismount everything nicely and shutdown properly?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum