Bug#992847: systemd: systemctl preset-all fails to handle /lib/systemd -> /usr/lib/systemd transition

Michael Prokop mika at debian.org
Tue Aug 24 09:07:59 BST 2021


Package: systemd
Version: 247.9-1
Severity: important

Hi,

this seems to be related to the "dh_installsystemd: Prefer
/usr/lib/systemd/ to /lib/systemd" change from debhelper v13.4.

Our daily Grml ISO builds started to fail a few days ago, because in
our chroots we have a symlink for
/etc/systemd/system/syslog.service, which points to
/lib/systemd/system/rsyslog.service (as it used to be in the rsyslog
packaging in the past):

| lrwxrwxrwx 1 root root 35 Aug 24 07:54 /etc/systemd/system/syslog.service -> /lib/systemd/system/rsyslog.service

Now, when invoking `systemctl preset-all` this fails as follows:

| # systemctl preset-all
| Unit /lib/systemd/system/cryptdisks.service is masked, ignoring.
| Unit /lib/systemd/system/mdadm-waitidle.service is masked, ignoring.
| Unit /lib/systemd/system/rcS.service is masked, ignoring.
| Unit /lib/systemd/system/sudo.service is masked, ignoring.
| Unit /lib/systemd/system/cryptdisks-early.service is masked, ignoring.
| Unit /lib/systemd/system/x11-common.service is masked, ignoring.
| Unit /lib/systemd/system/screen-cleanup.service is masked, ignoring.
| Unit /lib/systemd/system/rc.service is masked, ignoring.
| Unit /lib/systemd/system/mdadm.service is masked, ignoring.
| Unit /lib/systemd/system/nfs-common.service is masked, ignoring.
| Unit /lib/systemd/system/lvm2.service is masked, ignoring.
| Unit /lib/systemd/system/hwclock.service is masked, ignoring.
| Failed to preset unit, file /etc/systemd/system/syslog.service already exists and is a symlink to /lib/systemd/system/rsyslog.service.

When manually removing the /etc/systemd/system/syslog.service symlink,
then it works as expected:

| # rm /etc/systemd/system/syslog.service
| # systemctl preset-all
| Unit /lib/systemd/system/cryptdisks.service is masked, ignoring.
| Unit /lib/systemd/system/mdadm-waitidle.service is masked, ignoring.
| Unit /lib/systemd/system/rcS.service is masked, ignoring.
| Unit /lib/systemd/system/sudo.service is masked, ignoring.
| Unit /lib/systemd/system/cryptdisks-early.service is masked, ignoring.
| Unit /lib/systemd/system/x11-common.service is masked, ignoring.
| Unit /lib/systemd/system/screen-cleanup.service is masked, ignoring.
| Unit /lib/systemd/system/rc.service is masked, ignoring.
| Unit /lib/systemd/system/mdadm.service is masked, ignoring.
| Unit /lib/systemd/system/nfs-common.service is masked, ignoring.
| Unit /lib/systemd/system/lvm2.service is masked, ignoring.
| Unit /lib/systemd/system/hwclock.service is masked, ignoring.
| Created symlink /etc/systemd/system/syslog.service → /usr/lib/systemd/system/rsyslog.service.

The issue might have to be fixed from within the rsyslog package
itself, but given that this issue might affect further packages and
whoever relies on `systemctl preset-all`, I decided to report it
against systemd. Feel free to reassign as needed. Maybe also
to be considered RC severity?

regards
-mika-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20210824/57f97d90/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list