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 requires libpam-systemd / how do you install systemd? #233

Open
adrelanos opened this issue Nov 8, 2023 · 1 comment
Open

dracut requires libpam-systemd / how do you install systemd? #233

adrelanos opened this issue Nov 8, 2023 · 1 comment
Labels

Comments

@adrelanos
Copy link
Contributor

It seems grml-debootstrap leaves systemd installation to "pure chance"? The source code, default packages does not include systemd.

Probably the packages file has some package which installs a dependency that pulls libpam-systemd.

Without libpam-systemd grml-debootstrap will fail if export INITRD_GENERATOR=dracut is set.

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.

@zeha
Copy link
Member

zeha commented Nov 11, 2023

  1. If dracut needs libpam-systemd, it should depend on it. If it does not today, please file a bug in Debian.

  2. systemd gets pulled in by debootstrap itself, based on package Priorities. This is dependent upon the target suite being installed. Iow old Debian versions get sysvinit instead, but we do not control this.

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

No branches or pull requests

3 participants