Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dracut insufficient error message if libpam-systemd is missing / undeclared dependency #2555

Closed
adrelanos opened this issue Nov 14, 2023 · 3 comments
Labels
bug Our bugs

Comments

@adrelanos
Copy link

Describe the bug

When attempting to install dracut while libpam-systemd isn't installed, dracut will show an error message and the resulting image will be unable to boot.

The Debian package might have an undeclared dependency.

Distribution used
Debian bookworm.

Dracut version
059

Init system
systemd

To Reproduce

Without libpam-systemd dracut will fail to install inside chroot.

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

The system will not be bootable.

I don't know if that is a bug in dracut or if it can at all work without systemd.

Should systemd (or any init system) installation be declared explicit rather than implicit in packages file?

I am using a shorter packages file and it took me a while to figure out why dracut fails.

Expected behavior

  • A better error message.
  • Upstream (this repository) providing a list of dependencies

Additional context

@adrelanos adrelanos added the bug Our bugs label Nov 14, 2023
@LaszloGombos
Copy link
Collaborator

LaszloGombos commented Nov 14, 2023

Respectfully, I do not think managing Debian package dependencies are in scope for Dracut upstream.

dracut-install: ERROR: installing ...

I think this is a very clear error message already.

Others have already asked you to file a Debian issue - grml/grml-debootstrap#233 (comment) .

Debian has a lot of issues with packaging - see e.g. https://salsa.debian.org/debian/dracut/-/merge_requests/29

@adrelanos
Copy link
Author

Done.

Debian bug report:
missing dependency on init / systemd-sysv / libpam-systemd

@LaszloGombos
Copy link
Collaborator

Closing as this is a distro specific packaging issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Our bugs
Projects
None yet
Development

No branches or pull requests

2 participants