Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#24898 - [dhcpcd] must be run with '-p'

Attached to Project: Arch Linux
Opened by Stanislav GE (giner) - Sunday, 26 June 2011, 17:53 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 17 February 2013, 19:00 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Thomas B├Ąchler (brain0)
Ronald van Haren (pressh)
Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Problems is that killing dhcpcd process causes disablen IP address. It that case NETWORK_PERSIST="yes" (/etc/rc.conf) doesn't work as expected and network is really been killed on shutdown.

This can be easily fixed with replacing DHCPCD_ARGS="-q" by DHCPCD_ARGS="-q -p" in /etc/conf.d/dhcpcd.
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 17 February 2013, 19:00 GMT
Reason for closing:  None
Additional comments about closing:  Obsolete.
Comment by Jelle van der Waa (jelly) - Sunday, 26 June 2011, 20:26 GMT
added both tom and ronald as assignes, because it affects initscripts and the pkg
Comment by Tom Gundersen (tomegun) - Sunday, 26 June 2011, 20:55 GMT
Just to clarify: what we need is for dhcpcd to be called with -p, when it sets up the network connection used to mount the rootfs, which is done from the initrd?

For non-rootfs we will anyway have unmounted them before disconnecting the network (so NETWORK_PERSIST should not be needed). I have not yet studied NETWORK_PERSIST, so sorry if I'm ignorant on this topic :-)
Comment by Stanislav GE (giner) - Monday, 27 June 2011, 03:06 GMT
> Just to clarify: what we need is for dhcpcd to be called with -p, when it sets up the network connection used to mount the rootfs, which is done from the initrd?

Yes, it is so.
Comment by Tom Gundersen (tomegun) - Wednesday, 09 November 2011, 00:48 GMT
Getting back to this: I can't really test, as I don't have the required setup, but the way I think this should work is that dhcpcd is started in the initramfs and the same instance survives all the way to the shutdown and is only killed after the rootfs is unmounted. We probably need something similar with mdadm to be honest, but I dont have that setup etiher.

To make this work nicely we'll need to teach the differnt killall logics to not kill certain processes and we need the shutdown hooks to actually tear all of this down.

Loading...