On Mon, 11 Dec 2023 07:52:53 +0200
=?UTF-8?Q?Martin=2D=C3=89ric_Racine?= <martin-eric.rac...@iki.fi>
wrote:
> On Mon, 11 Dec 2023 00:25:45 +0100 Maximilian Engelhardt
> <m...@daemonizer.de> wrote:
> > Package: dhcpcd
> > Version: 1:9.4.1-24~deb12u3
> > Severity: normal
> > X-Debbugs-Cc: m...@daemonizer.de
> >
> > Examining dhcpcd.preinst and dhcpcd.postinst scripts indeed shows that 
> > dhcpcd
> > gets stopped in the preinst script, but never started again anywhere.
>
> These are added by dh_installinit and dh_installsystemd. Reassigning.

Looking at debian/rules, I currently install the package with the
following overrides:

# Avoid starting the unconfigured service as it may break connectivity.
override_dh_installinit:
    dh_installinit --name=dhcpcd --no-start

override_dh_installsystemd:
    dh_installsystemd --name=dhcpcd --no-start
    dh_installsystemd --name=dhcpcd@ --no-start

The manual for both dh_scripts says that --no-start will update the
files but neither stop or start the services (which is expected for a
DHCP client: the connection must remain during the upgrade). This is
apparently not the case. The additions made by the helpers stop the
service (oops!) and never restart it (oops again!).

Martin-Éric

Reply via email to