grml / grml-debootstrap

wrapper around debootstrap
59 stars 27 forks source link

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

Open adrelanos opened 10 months ago

adrelanos commented 10 months ago

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 commented 10 months ago

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.