Your message dated Tue, 28 Jun 2016 20:49:48 +0000
with message-id <e1bhzx6-0006q7...@franck.debian.org>
and subject line Bug#827376: fixed in init-system-helpers 1.36
has caused the Debian Bug report #827376,
regarding /usr/sbin/invoke-rc.d: uses non-essential /sbin/runlevel
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
827376: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=827376
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: init-system-helpers
Version: 1.35
File: /usr/sbin/invoke-rc.d
Severity: minor
User: helm...@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
--- init-system-helpers-1.35/script/invoke-rc.d
+++ init-system-helpers-1.35+nmu1/script/invoke-rc.d
@@ -295,7 +295,8 @@
 fi
 
 ## Queries sysvinit for the current runlevel
-if ! RL=`${RUNLEVELHELPER}`; then
+RL=
+if ! { test -x "$RUNLEVELHELPER" && RL=`${RUNLEVELHELPER}`; }; then
     if [ -n "$is_systemd" ] && systemctl is-active --quiet sysinit.target; then
         # under systemd, the [2345] runlevels are only set upon reaching them;
         # if we are past sysinit.target (roughly equivalent to rcS), consider

--- End Message ---
--- Begin Message ---
Source: init-system-helpers
Source-Version: 1.36

We believe that the bug you reported is fixed in the latest version of
init-system-helpers, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 827...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Pitt <mp...@debian.org> (supplier of updated init-system-helpers package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 28 Jun 2016 22:10:37 +0200
Source: init-system-helpers
Binary: init-system-helpers dh-systemd init
Architecture: source all amd64
Version: 1.36
Distribution: unstable
Urgency: medium
Maintainer: Debian systemd Maintainers 
<pkg-systemd-maintainers@lists.alioth.debian.org>
Changed-By: Martin Pitt <mp...@debian.org>
Description:
 dh-systemd - debhelper add-on to handle systemd unit files
 init       - init metapackage
 init-system-helpers - helper tools for all init systems
Closes: 358496 758139 768609 770344 824804 827376
Changes:
 init-system-helpers (1.36) unstable; urgency=medium
 .
   [ Martin Pitt ]
   * init: Don't depend on sysvinit-core when building on/for Ubuntu and
     derivatives.
   * init: Drop "essential" from the package description as it is not essential
     any more.
   * invoke-rc.d: Quiesce error message if "runlevel" does not exist, which is
     now the case in chroots since init stopped being essential.
     (Closes: #827376)
   * update-rc.d: Testing for /etc/init.d/mountkernfs.sh is not sufficient as
     initscripts might only be unpacked but not configured yet (during
     debootstrap). Thus test if /etc/rcS.d/S??mountkernfs.sh exists. Thanks to
     Felipe Sateler for the idea! (Closes: #824804)
   * init-system-helpers: Ship README.invoke-rc.d and README.policy-rc.d.
   * invoke-rc.d.8: Update the SEE ALSO link to README.policy-rc.d.
     (Closes: #358496)
   * service.8: Document that this starts systemd units as well.
     (Closes: #758139)
   * invoke-rc.d: Show "systemctl status" on a failed (re)start if running
     under systemd. This makes logs with failed package installations much more
     useful, and human users will most likely do exactly that anyway.
     (LP: #1596056)
 .
   [ Luca Boccassi ]
   * dh_systemd_enable: Add support for installing templated service units.
     (Closes: #770344)
   * dh_systemd_enable: Add support for installing path units.
     (Closes: #768609)
Checksums-Sha1:
 8388f73f7606f19f98c2bdd19d5ce93664608454 1867 init-system-helpers_1.36.dsc
 20d671314cdab1ae775cbce9402897d505fb91be 58424 init-system-helpers_1.36.tar.xz
 1fb4f7a0e5a29947651666d5d8d63b08dbb4cf7c 22608 dh-systemd_1.36_all.deb
 43c422cd399d224d8b41e4e259a18a994112fddf 40870 init-system-helpers_1.36_all.deb
 467e3f316827b897cccf3aa697d53f64fa4c9166 8748 init_1.36_amd64.deb
Checksums-Sha256:
 590e455e7d2abb1433c1a1bd5d58df31f3f4b2e5d5db73afbe216c9a1d063f81 1867 
init-system-helpers_1.36.dsc
 1b4151b05d5edf5af53c4ae74bffe017c964a943fa58c8badb4fcc6acf2138fd 58424 
init-system-helpers_1.36.tar.xz
 8f7ead15d1539d511447961093cad16635df6ade2b7090696035a0092a30c0a2 22608 
dh-systemd_1.36_all.deb
 58041a9d32809668338f2b4492fcd6898a795c0b56102c4010df986ed690cfb0 40870 
init-system-helpers_1.36_all.deb
 3e558efc23c5b2bdbdf10d860ec7795c121af3069fb141069e03bc7ad5409170 8748 
init_1.36_amd64.deb
Files:
 3f5ce4454f533afceb969ce8803c850f 1867 admin extra init-system-helpers_1.36.dsc
 05e7ed9d015668f3e0d416997d9a8b09 58424 admin extra 
init-system-helpers_1.36.tar.xz
 842d0f80a121d63336d5749cc5f380c7 22608 admin extra dh-systemd_1.36_all.deb
 f2ac30fb3d91888e23c329afa9b6acd6 40870 admin required 
init-system-helpers_1.36_all.deb
 f1a92102837f51e27ec4189c640a5fc6 8748 metapackages important 
init_1.36_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXcttIAAoJENFO8V2v4RNHQBsQAKIK6yjlt9Zx8zGgyL+xwf+L
h08pFYkGIP7GPzXopDrIz7M76DSGBGlNx7p+0TCnBCrf5WGGwdgjiFsLvdGNqXcj
CRLYp2Fy+YTQ59sEg1CJrnrM1jjwrFfPBGpkM0xaAD5c1CytKW7GgVlTfaVd2kCW
qgS1iDJUOBYgQGL1UIhYbCsjf/TwoqmGMChxPlogJJIA5izwMQ3eHmgRdRbKGzjH
1My2nU/I21xFSdi/ck+a5cHABBF3Kl1Un4TRrKRS/beJloJf0JCqZjswYDf3QrA/
pZS01xqR0E4aNzld4Y4Oa09Nj4uuWTAHV9omFMWLBfyOFggGgeppYUyMqXm3sKXi
nYOmez8JFNAdsbTGA8vXukoGl3Cl212ZQkSUwcMyHJCsucAKrBN1lWOsOUJBIlIX
4Lg+QFRUlv0VG997JvzjGnebUKUN5t4ugRrudKdDKtvEMUpi3wVKcPvQJ2BwxCEo
WramhpdqHZO125wW8Anb11Ktb8sAmA8pjhfIc4/LVvkZ626eQHnLEp2j4t/jCJgX
P9CEVjHy3MpN1SSPbXKRUakktZUmv1Gz4mq0ihH2SeAstAfBdKzqBOTRX5cHKSYA
gVYmGxWpDMLag/HZjnPVohduhWe6w6cgGogAF4dMSNfKtIvqC8WyNL5zaZb9GD1d
e3ifXA6/pWZPpVGuwsLw
=m+ot
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-systemd-maintainers mailing list
Pkg-systemd-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to