[debhelper-devel] Bug#894084: dh_installinit --no-start --no-enable gives update-rc.d: error: no runlevel symlinks to modify, aborting!

Felipe Sateler fsateler at debian.org
Tue Apr 3 13:03:24 UTC 2018


On Mon, 26 Mar 2018 12:48:20 +0200 Martin Steigerwald
<martin.steigerwald at proact.de> wrote:
> Package: debhelper
> Version: 11.1.5
> Severity: normal
>
> Dear maintainers,
>
> I am working on support for starting flexible I/O tester in Debian package
> fio as a service for both systemd and sysvinit based setups.
>
> However I just want to install the systemd service file and the init script,
> but not enable it or start the service. This works fine with dh_installsystemd,
> but fails with dh_installinit.

I can't reproduce this. I cloned your repo, copied over the init
script to /etc/init.d , and ran `update-rc.d fio defaults-disabled`,
and it succeeded. Can you reproduce by doing the same steps as I did?

Please also post whether you have insserv and initscripts installed
(and which versions), and the output of `ls -l /etc/rc?.d/*fio` after
the failed command.

>
> With:
>
> [...]/pkg-fio> cat debian/rules
> #!/usr/bin/make -f
> […]
> %:
>         dh $@
>
> override_dh_auto_configure:
>         ./configure --prefix=/usr --enable-gfio
>
> override_dh_installsystemd:
>         dh_installsystemd --no-start --no-enable
>
> override_dh_installinit:
>         dh_installinit --no-start --no-enable
>
> I receive this:
>
> LANG=C dpkg -i fio_3.5-1_amd64.deb
> (Reading database ... 671535 files and directories currently installed.)
> Preparing to unpack fio_3.5-1_amd64.deb ...
> Unpacking fio (3.5-1) over (3.5-1) ...
> Setting up fio (3.5-1) ...
> update-rc.d: error: no runlevel symlinks to modify, aborting!

How defaults-disabled works, is to first enable the service, and then
disable by toggling the S* links into K*. This error message occurs
when the enabling succeeded, but then the toggling doesn't find any
links. This is weird because insserv is supposed to exit non-zero if
that happened.


Saludos




More information about the debhelper-devel mailing list