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

Martin Steigerwald martin.steigerwald at proact.de
Mon Apr 9 11:58:00 UTC 2018


Hi Felipe.

Have been in holidays.

Felipe Sateler - 03.04.18, 15:03:
> 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?

% update-rc.d fio defaults-disabled
update-rc.d: error: no runlevel symlinks to modify, aborting!
% ls -l /etc/init.d/fio
-rwxr-xr-x 1 root root 734 Mär 21 10:54 /etc/init.d/fio

> 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.

% apt-show-versions | egrep "insserv|initscripts"
initscripts:amd64/sid 2.88dsf-59.10 uptodate
initscripts:i386 not installed
insserv:amd64/experimental 1.16.0-5 uptodate
insserv:i386 not installed

% update-rc.d fio defaults-disabled
update-rc.d: error: no runlevel symlinks to modify, aborting!
% LANG=C ls -l /etc/rc?.d/*fio
ls: cannot access '/etc/rc?.d/*fio': No such file or directory

> > 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

I knew this far.

> 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.

Hmmm, strange.

Thanks
-- 
Martin




More information about the debhelper-devel mailing list