Summary: | net-misc/dhcp-4.2.1-r1 init script is not suitable for chroot usage | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrew Savchenko <bircoph> |
Component: | [OLD] Server | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | asl, axiator, che, halil.esen, petr.pisar, steven |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 378799 | ||
Attachments: |
dhcpd.init.diff
dhcpd.init4 dhcp-4.2.1-r1.ebuild.patch dhcpd.init4 |
Description
Andrew Savchenko
![]() Created attachment 268933 [details, diff]
dhcpd.init.diff
This patch fixes first two issues, but it will broke older dhcp releases (3.x branch), so it must be extended for further checks.
It uses bind mount for /proc inside of chroot if chroot is used and checks for dhcpd.conf in normal /etc, instead of chrooted version, because the first one is used instead of the latter.
Created attachment 268937 [details]
dhcpd.init4
New dhcpd init script.
Created attachment 268939 [details, diff]
dhcp-4.2.1-r1.ebuild.patch
Ebuild update with for new init script and fixes proposed earlier.
any news? Created attachment 284957 [details]
dhcpd.init4
your init script doesn't catch all cases. try this instead.
*** Bug 382039 has been marked as a duplicate of this bug. *** I confirm SpanKY's init seems to work. should be all set now in the tree; thanks for the report! Commit message: Rewrite chroot usage to work with newer versions http://sources.gentoo.org/net-misc/dhcp/dhcp-4.2.2-r2.ebuild?rev=1.1 http://sources.gentoo.org/net-misc/dhcp/files/dhcpd.conf2?rev=1.1 http://sources.gentoo.org/net-misc/dhcp/files/dhcpd.init4?rev=1.1 Why has pkg_config() disappeared from ebuild? `emerge dhcp --config' as advised in /etc/conf.d/dhcpd does not work anymore. should be all set now in the tree; thanks for the report! Commit message: Drop old `emerge --config` comment http://sources.gentoo.org/net-misc/dhcp/dhcp-4.2.2-r2.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/net-misc/dhcp/files/dhcpd.conf2?r1=1.1&r2=1.2 |