Devuan bug report logs -
#898
systemctl-service-shim: Breaks automatic grub menu updating
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to devuan-bugs@lists.dyne.org, bgstack15@gmail.com, B. Stack <bgstack15@gmail.com>
:
bug#898
; Package systemctl-service-shim
.
(Mon, 30 Jun 2025 18:16:01 GMT) (full text, mbox, link).
Acknowledgement sent
to "Plasma (David Paul)" <davidpaul@librem.one>
:
New bug report received and forwarded. Copy sent to bgstack15@gmail.com, B. Stack <bgstack15@gmail.com>
.
Your message specified a Severity: in the pseudo-header, but
the severity value important was not recognised.
The default severity normal is being used instead.
The recognised values are: critical, grave, normal, minor, wishlist.
(Mon, 30 Jun 2025 18:16:02 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):
Control: affects -1 grub2-common
Package: systemctl-service-shim
Version: 0.0.1
Severity: important
X-Debbugs-CC: bgstack15@gmail.com
# Problem
If the systemctl-service-shim package is installed, the grub menu is
not automatically updated when a new linux kernel version is installed.
# Description
Following each linux kernel installation or update, the scripts in the
directory /etc/kernel/postinst.d are run in ascii-betical order. When
the grub2-common package is installed, one of these scripts is the file
zz-update-grub which is responsible for updating the grub boot menu
entries to include an entry for the newly install kernel and to update
the default kernel option, as appropriate.
The zz-update-grub script starts with a few checks to verify that
certain conditions are met and, if not, it aborts. Relevant to this
bug, it checks to see whether it is running within a container and, if
so, it aborts. The utility it uses to make this check is
systemd-detect-virt which, on Debian, comes from the systemd package.
systemd-detect-virt is one of the three utilities that
systemctl-service-shim provides compatibility shims for. However,
currently in the case of systemd-detect-virt, this is accomplished by
simply always returning with "exit 0". As a result, the zz-update-grub
script always *erroneously* detects that it is running in a container
and always prematurely exits and never updates the grub menu.
(Note: The grub-legacy package also includes its own zz-update-grub
script for automatically updating the grub v1 menu, but it doesn't
check if it is running in a container (should it?), so it is not
affected by this issue.)
# Questions/Analysis
- What in Devuan currently requires systemd-detect-virt, and what
functionality is required for its shim to provide?
AFAICT, only the dummy-systemd-dev and python3-ipalib binary packages
(from the dummy-systemd-dev and freeipa source packages,
respectively) depend on the systemctl-service-shim package.
Grepping for 'systemd-detect-virt' (or 'hostnamectl' for that matter)
in the dummy-systemd-dev source code turns up nothing, so
dummy-systemd-dev can be safely ignored.
This leaves just the freeipa source package to evaluate. CC-ing
bgstack15 to request his subject matter expertise in this regard.
- Currently, systemctl-service-shim provides shims for systemctl,
hostnamectl, and systemd-detect-virt. However, this is presently
accomplished by having both systemd-detect-virt and hostnamectl be
symlinks to the systemctl shim script, and simply checking the name
under which the script was executed, and if that name was either of
hostnamectl or systemd-detect-virt then merely terminate with an exit
code of 0. Should these 2 scripts be independent of the systemctl
script instead of being shoehorned onto the side? Are they even
needed?
--
Plasma
Added indication that 898 affects grub2-common
Request was from "Plasma (David Paul)" <davidpaul@librem.one>
to submit@bugs.devuan.org
.
(Mon, 30 Jun 2025 18:16:03 GMT) (full text, mbox, link).
Reply sent
to dak@devuan.org
:
You have taken responsibility.
(Wed, 02 Jul 2025 15:14:01 GMT) (full text, mbox, link).
Notification sent
to "Plasma (David Paul)" <davidpaul@librem.one>
:
bug acknowledged by developer.
(Wed, 02 Jul 2025 15:14:02 GMT) (full text, mbox, link).
Message #12 received at 898-done@bugs.devuan.org (full text, mbox, reply):
Version: 0.0.8
Source package systemctl-service-shim (0.0.8) added to Devuan suite unstable.
This closes bug report 898.
Thanks
DAK managing the Devuan archive
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 02 Jul 2025 11:01:18 -0400
Source: systemctl-service-shim
Architecture: source
Version: 0.0.8
Distribution: unstable
Urgency: medium
Maintainer: B. Stack <bgstack15@gmail.com>
Changed-By: B. Stack <bgstack15@gmail.com>
Closes: 898
Changes:
systemctl-service-shim (0.0.8) unstable; urgency=medium
.
[ B. Stack ]
* Remove hostnamectl and systemd-detect-virt stub behavior (Closes: #898)
* d/control: add breaks python3-ipaclient << 4.12.4-1devuan1
Checksums-Sha1:
36715e42cf45e046b7d40de05f5d04ee628f7e81 1442 systemctl-service-shim_0.0.8.dsc
33ca8a1c02ff866c115944a1e01328b87a253c2f 16700 systemctl-service-shim_0.0.8.tar.xz
1de5ae9a0ed836074b956de9f033e7cf33dc1a80 5618 systemctl-service-shim_0.0.8_source.buildinfo
Checksums-Sha256:
cb3f679fb8fbfd3c964ea33b1e0b5e1322f4dd8cb88117e5dd13a97d991d257e 1442 systemctl-service-shim_0.0.8.dsc
219892ceb76207799dfacc5438435ad53ada5e279b7eee9036025585822c70fc 16700 systemctl-service-shim_0.0.8.tar.xz
77323d3cffd2fddc4d2c7294d76a59ee26acf1cbb48e20cbc0d249f9ef0b0c1e 5618 systemctl-service-shim_0.0.8_source.buildinfo
Files:
cd2fe47da54f7ff2d10974fd96a3a23f 1442 admin optional systemctl-service-shim_0.0.8.dsc
550e56aaaa8624aed0d73e767af690a8 16700 admin optional systemctl-service-shim_0.0.8.tar.xz
9ef09c434effcd73571f6de35ec19bbe 5618 admin optional systemctl-service-shim_0.0.8_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEcuPLdzMV36LkZHQ9lFMhJFQZIvsFAmhlTBcACgkQlFMhJFQZ
IvvKrAf+M9j9ZHyNFN7gpesYqlx7ObPogFbUuQWYKVhlmZ//EWAEcAVXQ1sxFlJ2
q6giqqSx8fdPxJWVJrrhr8VCQHvOL446LVutLDjWUcMoABsu1yqE4psG3ranQd24
5tkxzaJTmenpobKFtAqopdlHwOy2yil+f7V3Dhu0FWzChRnToeYC6OVjmXbr3jsM
ZK7Bg3ipjEwPUyyPHi79gVDa79ARLw7qxH9WbmqQkqPYos6SI0Ev/Ri3dVqv/APP
BqoWjCRQ3UcBwP5I78PiSlNHLMcCmnlxAuRL+8pIW5TBphtYDSUBQkao7IcxFNor
xch8jMyq3jifSuGX7lfsOPRvRHWmLw==
=wJ1Q
-----END PGP SIGNATURE-----
Severity set to 'critical' from 'normal'
Request was from "Plasma (David Paul)" <davidpaul@librem.one>
to control@bugs.devuan.org
.
(Wed, 02 Jul 2025 19:00:01 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.