Bug#828709: /usr/sbin/invoke-rc.d: uses non-essential /sbin/runlevel

Helmut Grohne helmut at subdivi.de
Mon Jun 27 05:21:16 BST 2016


Package: init-system-helpers
Version: 1.35
File: /usr/sbin/invoke-rc.d
Severity: minor
User: helmutg at debian.org
Usertags: rebootstrap

While removing e.g. x11-common, I saw the following message scrolling
by:

| /usr/sbin/invoke-rc.d: 1: /usr/sbin/invoke-rc.d: /sbin/runlevel: not found
| invoke-rc.d: could not determine current runlevel
| invoke-rc.d: policy-rc.d denied execution of stop.

You can trigger it by debootstrapping a --variant=minbase sid chroot and
using invoke-rc.d. In this case, it was removing x11-common.

Given that invoke-rc.d does the right thing in the absence of an init
system, I mark this bug minor, but it could still explicitly check for
that condition. What do you think about the attached patch?

Having init non-essential is otherwise pretty nice. :)

Helmut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: invoke-rc.d.diff
Type: text/x-diff
Size: 522 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160627/39bc78a2/attachment.diff>


More information about the Pkg-systemd-maintainers mailing list