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

2021-09-27 Thread Michael Prokop
Hi,

* Michael Biebl [Sat Sep 25, 2021 at 10:12:53PM +0200]:
> On Tue, 24 Aug 2021 10:07:59 +0200 Michael Prokop  wrote:

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

> Seems this change was reverted in debhelper 13.5.2 so I wonder what to do
> about this bug report.

If debhelper no longer places files in /usr/lib/systemd/ instead of
/lib/systemd, then this bug report shouldn't be valid any longer, I guess?
(Feel free to close it if you think it no longer applies, though if
you'd prefer to keep it open until the overall situation has
settled, please feel free to do so either, I'm fine both ways :))

> I guess the solution here is to wait for mandatory merged-/usr in bookworm,
> in wich case this will be moot anyway.

ACK

> I suppose, your Grml ISO build didn't have a merged-/usr file system, so the
> /etc/systemd/system/syslog.service was dangling, pointing at a file
> /lib/systemd/system/rsyslog.service which was now
> /usr/lib/systemd/system/rsyslog.service ?

Exactly.

regards
-mika-


signature.asc
Description: Digital signature


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

2021-09-25 Thread Michael Biebl
On Tue, 24 Aug 2021 10:07:59 +0200 Michael Prokop  wrote:
> 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.
> 

Seems this change was reverted in debhelper 13.5.2 so I wonder what to do
about this bug report.

I guess the solution here is to wait for mandatory merged-/usr in bookworm,
in wich case this will be moot anyway.

I suppose, your Grml ISO build didn't have a merged-/usr file system, so the
/etc/systemd/system/syslog.service was dangling, pointing at a file 
/lib/systemd/system/rsyslog.service which was now
/usr/lib/systemd/system/rsyslog.service ?


signature.asc
Description: This is a digitally signed message part


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

2021-08-24 Thread Michael Prokop
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-


signature.asc
Description: Digital signature