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