[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 Mar 26 10:48:20 UTC 2018
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.
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!
dpkg: error processing package fio (--install):
installed fio package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (238-3) ...
Processing triggers for doc-base (0.10.8) ...
Processing 1 changed doc-base file...
Errors were encountered while processing:
fio
Package init-system-helpers is 1.51 which according to manpage should be
sufficient.
Init script is just:
[…]/pkg-fio/debian> cat fio.init
#!/bin/sh
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
fi
### BEGIN INIT INFO
# Provides: fio
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Flexible I/O Tester as service
# Description: Runs fio as a service to that fio clients can connect
# to it
### END INIT INFO
# Author: Martin Steigerwald <[…]>
DESC="Flexible I/O Tester as service"
DAEMON=/usr/bin/fio
DAEMON_ARGS='--server --daemonize /run/fio.pid'
PIDFILE='/run/fio.pid'
Package is at: https://salsa.debian.org/debian/fio
(ce65f9f4d152ac8e2c65d5614e800671a785ffb4 is suitable to reproduce the issue)
I upload a binary version somewhere on request.
Thanks,
Martin
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.16.0-rc6-tp520-btrfstrim-nolpm-quiescev2+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages debhelper depends on:
ii autotools-dev 20180224.1
ii dh-autoreconf 17
ii dh-strip-nondeterminism 0.040-1
ii dpkg 1.19.0.5
ii dpkg-dev 1.19.0.5
ii file 1:5.32-2
ii libdpkg-perl 1.19.0.5
ii make 4.2.1-1
ih man-db 2.8.2-1
ii perl 5.26.1-5
ii po-debconf 1.0.20
debhelper recommends no packages.
Versions of packages debhelper suggests:
pn dh-make <none>
pn dwz <none>
-- no debconf information
More information about the debhelper-devel
mailing list