Your message dated Mon, 29 Feb 2016 13:34:53 +0000
with message-id <[email protected]>
and subject line Bug#806438: fixed in init-system-helpers 1.29
has caused the Debian Bug report #806438,
regarding update-rc.d: Do not fail when initscripts is not installed
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 [email protected]
immediately.)
--
806438: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806438
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sysv-rc
Version: 2.88dsf-59.2
Severity: normal
Tags: patch
User: [email protected]
Usertags: integration
Hi,
In order to allow systems that do not require initscripts, update-rc.d
needs to cope with the services it provides being missing. Currently, if
initscripts is missing, the packages that specify a Requires-* LSB
dependency will fail to configure, as insserv will return with an error,
because it cannot compute a correct ordering sequence.
On systemd systems, however, the ordering sequence is not used, and all
that is required is that enable/disable links are present. So in systemd
systems we can force insserv to generate the links even if the ordering
is wrong.
If a systemd-only system then installs initscripts, because initscripts
calls update-rc.d in postinst, that will recompute the sequences, so the
correct ordering should be reestablished afterwards.
Allowing this change would enable many packages to drop their dependency
against initscripts, which are currently only required for this reason.
Attached is a patch that passes the -f flag to insserv when the file
/etc/init.d/mountkernfs.sh is not present. This preserves the current
behavior as long as initscripts is not purged, but allows (in the
future, when package dependencies have been corrected) a systemd without
the initscripts package. mountkernfs.sh is used as flag file to not fork
a new process, and because it is the most heavily depended-upon service
provided by initscripts.
Additional information and motivation at:
http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/2015-November/009674.html
https://bugs.debian.org/cgi-bin/pkgreport.cgi?users=pkg-systemd-maintainers@lists.alioth.debian.org;dist=unstable;tag=initscripts-dep
Saludos
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages sysv-rc depends on:
ii debconf [debconf-2.0] 1.5.58
ii insserv 1.14.0-5
ii startpar 0.59-3
ii sysvinit-utils 2.88dsf-59.2
Versions of packages sysv-rc recommends:
ii lsb-base 9.20150917
Versions of packages sysv-rc suggests:
pn bum <none>
-- debconf information excluded
>From e69e187e24ba56f12a28fae85d2925bc5723780a Mon Sep 17 00:00:00 2001
From: Felipe Sateler <[email protected]>
Date: Fri, 27 Nov 2015 09:46:07 -0300
Subject: [PATCH] update-rc.d: Ensure insserv doesn't fail initscripts is not
installed
At some point in the future, it should be possible to install a system
without initscripts package. This means that insserv should ignore any
missing Requires-* package, because that information will be discarded
in a non-initscripts system; all we care about is the enable/disable
link. So pass -f to insserv, so that it still generates the link, even
when some dependencies are missing.
---
debian/src/sysv-rc/sbin/update-rc.d | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/debian/src/sysv-rc/sbin/update-rc.d b/debian/src/sysv-rc/sbin/update-rc.d
index a631021..59aeac2 100755
--- a/debian/src/sysv-rc/sbin/update-rc.d
+++ b/debian/src/sysv-rc/sbin/update-rc.d
@@ -168,6 +168,10 @@ sub insserv_updatercd {
usage("not enough arguments") if ($#args < 1);
+ # Add force flag if initscripts is not installed
+ # This enables inistcripts-less systems to not fail when a facility is missing
+ unshift(@opts, '-f') unless is_initscripts_installed();
+
$scriptname = shift @args;
$action = shift @args;
my $insserv = "/usr/lib/insserv/insserv";
@@ -380,3 +384,11 @@ sub insserv_toggle {
rename($cur_lnk, join('', @new_lnk)) or error($!);
}
}
+
+# Try to determine if initscripts is installed
+sub is_initscripts_installed {
+ # Check if mountkernfs is available. We cannot make inferences
+ # using the running init system because we may be running in a
+ # chroot
+ return -f '/etc/init.d/mountkernfs.sh';
+}
--
2.6.2
--- End Message ---
--- Begin Message ---
Source: init-system-helpers
Source-Version: 1.29
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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Martin Pitt <[email protected]> (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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 29 Feb 2016 13:24:34 +0100
Source: init-system-helpers
Binary: init-system-helpers dh-systemd init
Architecture: source all amd64
Version: 1.29
Distribution: unstable
Urgency: medium
Maintainer: Debian systemd Maintainers
<[email protected]>
Changed-By: Martin Pitt <[email protected]>
Description:
dh-systemd - debhelper add-on to handle systemd unit files
init - System-V-like init utilities - metapackage
init-system-helpers - helper tools for all init systems
Closes: 546532 806438
Changes:
init-system-helpers (1.29) unstable; urgency=medium
.
[ Michael Biebl ]
* Bump debhelper compatibility level to 9.
.
[ Raphael Geissert ]
* invoke-rc.d: Fix behaviour when no start or stop symlink is found.
Although update-rc.d(8) says that it is a common administration error to
delete a start symlink instead of renaming it to make it a stop symlink,
the default behaviour of invoke-rc.d in that case is not sensible, and
leads to the init script being executed. (Closes: #546532)
.
[ Martin Pitt ]
* invoke-rc.d: Fix package installation failure when installing a package
with an upstart script and systemd unit, but no SysV script in a chroot.
(LP: #1543051)
.
[ Felipe Sateler ]
* update-rc.d: Ensure insserv doesn't fail if initscripts is not installed
(Closes: #806438)
.
[ Benda Xu ]
* script/invoke-rc.d: Add OpenRC support.
* script/update-rc.d: Add OpenRC support.
Checksums-Sha1:
ce08ab2adbe63789291488a60efcaeec4b2bb56a 1875 init-system-helpers_1.29.dsc
33a8c393df765416e9c0a4b010789c18cfca36fb 55620 init-system-helpers_1.29.tar.xz
54bdff044bb4cbc525903abfd9e6c9b5a6d105aa 20082 dh-systemd_1.29_all.deb
ca6af4423edf07c62365690a4074f724c21b7245 33774 init-system-helpers_1.29_all.deb
59c3fba3812afe8c1ceec5f7165ba4af562008f0 6742 init_1.29_amd64.deb
Checksums-Sha256:
7499cbaf29bf08678b7dc353e0700b6ce40a7326da2ca383264d31bc89450f57 1875
init-system-helpers_1.29.dsc
2827afde59cec06074df43153ac408b40cb2aa95ad4c5672fc51fdf9f79e2cb7 55620
init-system-helpers_1.29.tar.xz
d29541ddce38205ea37a3790b9ff2994d5af65605a73d4abc51f678361299bc7 20082
dh-systemd_1.29_all.deb
45ad7073449bbbfc6ed7ceec18a42a1be372e55d28853ff494f4e1a568996659 33774
init-system-helpers_1.29_all.deb
abdbbfed292d17686bbe78c1dbcd1c57c3e37f7200b28450ec8f61d2d7237b6a 6742
init_1.29_amd64.deb
Files:
a43dfaf1e7cdfcc3907b11833fa237d6 1875 admin extra init-system-helpers_1.29.dsc
206e0de7b3b853686ff242d1d32e9662 55620 admin extra
init-system-helpers_1.29.tar.xz
475a0c0e02aaf2a272d0a905d6f73fd2 20082 admin extra dh-systemd_1.29_all.deb
9e4643759f5cc43dd17d328d9dcd3afe 33774 admin required
init-system-helpers_1.29_all.deb
26d1c937cc253cad82779c2e46f2d03d 6742 metapackages required init_1.29_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJW1Ec6AAoJENFO8V2v4RNHwYEQALVuPkQSDThzeej1WQzkTJlw
9SyAh4uVabQ77gQcs3QdMJQqlIgp0qjHgAy+eyjrAuIY3So+S7Wxi40HW6Iedya+
peYTiOCBDOnlXQqwe4hUrIXOYMmGsVnCkHybmVu3ZJRWKuFYSo/WccS6pEE4/fjs
0b2qzvfzQYmBGyTBT1utsvFwPjc2aMpsBmMssC4a3h7lOdwLl0ZAQ3T9uQioisnu
nQroY1dPiDQbdE98KI/0CADCcWwLp/ojfnWyqDR10IlxaUzxixuLh9oodOGHtCJX
LeUfHAdxGtLqRyLu3z85XxqjLPRjnrRZLZ7tQQp7lfkO+yjfruCGrAXDxMV01dpW
9jVffb9Lq1L5A7UlCMfyS6rhD8jhy1mzLd1LKZnJ+RT0QD0Q9Gm5UDqNR2zn5TaB
XyDXrVAcjTW9mTbhI4SjSREN99PPz/6FSwSke1qKquAZUg9d0imbtZjLAX/4w5Y9
bhtPT42b1r36DpJLJfNTDdvlOqxjlacCZGiM2zhKGCFLF7FCJTflxVF6nUo1LNkc
JJ/F3nOfhNU2RoUB3RuFxwhJUxNXnANE13KofvgClmsdn7sOqU+vDJ/+sFoyYyf1
sTxiTzr23fx5HcSNDNCZVHkq84OWKymnEnEVrOSzA3sO88988c7TyoZ4Bp8hZdXe
zlS6nF+leRyCtSE4meTV
=fMzy
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers