Hi Thomas,

I can't reproduce this in a minimal debvm:

$ debvm-create -r testing -- --include=dracut
$ debvm-run
# inside
$ lsinitrd /initrd.img | grep poweroff
lrwxrwxrwx   1 root     root           16 Sep 11 15:20 usr/sbin/poweroff -> 
../bin/systemctl

So I guess this is no longer needed.

Can you please drop the dependency or make it init | systemd?

Cheers Jochen

* Debian Bug Tracking System <ow...@bugs.debian.org> [2024-09-11 09:39]:
This is an automatic notification regarding your Bug report
which was filed against the dracut-core package:

#1056382: missing dependency on init / systemd-sysv / libpam-systemd

It has been closed by Debian FTP Masters <ftpmas...@ftp-master.debian.org> (reply to 
Thomas Lange <la...@debian.org>).

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Debian FTP Masters 
<ftpmas...@ftp-master.debian.org> (reply to Thomas Lange <la...@debian.org>) by
replying to this email.


--
1056382: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1056382
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems

Date: Wed, 11 Sep 2024 09:34:47 +0000
To: 1056382-cl...@bugs.debian.org
Reply-To: Thomas Lange <la...@debian.org>
From: Debian FTP Masters <ftpmas...@ftp-master.debian.org>
Subject: Bug#1056382: fixed in dracut 103-2




Date: Wed, 22 Nov 2023 04:02:00 +0000
To: sub...@bugs.debian.org
Reply-To: adrela...@whonix.org
From: Patrick Schleizer <adrela...@whonix.org>
Subject: missing dependency on init / systemd-sysv / libpam-systemd

Package: dracut-core
Severity: normal

When attempting to install dracut inside a chroot while libpam-systemd wasn't installed, dracut showed an error message and the resulting image was unbootable.

```
dracut-install: ERROR: installing 'poweroff'
dracut-install: ERROR: installing 'reboot'
dracut-install: ERROR: installing 'halt'
dracut: FAILED: /usr/lib/dracut/dracut-install -D
/tmp/user/0/dracut.Yir3ea/initramfs -a umount poweroff reboot halt losetup stat sleep timeout
+ dracut --no-hostonly --kver 6.1.0-13-amd64 --fstab --add-fstab
/etc/fstab --force --reproducible
```

Now upon reflection, it might have nothing to do with libpam-systemd.

Should init installation be declared explicit as a 'Depends: init'?

Alternatively, package systemd-sysv provides:

- poweroff
- reboot
- halt

Is dracut-core useful without /sbin/poweroff installed? If yes, the 'Depends: init' should not be added to the Debian dracut-core package.

In that case, the dracut package perhaps should add 'Depends: init' because certainly without init, dracut cannot boot the system?

**Distribution used**
Debian bookworm.

**Dracut version**
059

**Init system**
systemd

''Related upstream tickets'

* https://github.com/grml/grml-debootstrap/issues/233
* https://github.com/dracutdevs/dracut/issues/2555

Cheers,
Patrick

Attachment: signature.asc
Description: PGP signature

Reply via email to