Package: dracut-core
Version: 113-2
Severity: normal
Tags: patch

Hi,

On a system installed with an ext4 root and no LUKS, LVM or RAID, every
boot logs this from the initramfs:

(udev-worker)[202]: tty0: Failed to find and pin callout binary
"/sbin/initqueue": No such file or directory
(udev-worker)[202]: tty0: Failed to execute '/sbin/initqueue --onetime
--unique --name console-setup /lib/udev/console-setup', ignoring: No such
file or directory

The rule comes from Debian's 09console-setup module (10-console.rules):

KERNEL=="tty0", RUN+="/sbin/initqueue --onetime --unique --name
console-setup /lib/udev/console-setup"

But the module's depends() returns 0 without naming initqueue. Since 108-1
the initqueue module is only included when another module asks for it, so
this initramfs has no /sbin/initqueue and setupcon never runs there. btrfs,
crypt, lvm and mdraid depend on initqueue, so those systems get it anyway.
dracut also writes usr/lib/dracut/need-initqueue for this rule, but the
module is still left out.

I see it on initramfs images built by the installer (Calamares) in a
chroot, where hostonly_cmdline is off. From reading 80base, I expect a
rebuild on the running system to pull initqueue in through the ESP's
devexists hook, so it may go away after the first kernel update. I have not
tested that.

70numlock declares the same dependency. This fixes it here:

--- a/debian/09console-setup/module-setup.sh
+++ b/debian/09console-setup/module-setup.sh
@@ -18,3 +18,4 @@
depends() {
+ echo base initqueue
return 0
}

I tested it in a VM with an initramfs built the same way, one boot with and
one without the change. With it, the error is gone and
dracut-initqueue.service runs. The initramfs only gains initqueue and grep,
which a btrfs system already has.

dracut-core 113-2, systemd 262.2-1

Thanks, Kel

Reply via email to