Package: dracut-core
Version: 056-3
Severity: important

Dear Maintainer,

I noticed that on shutdown, dracut-shutdown.service failed on my box:

Oct 04 03:33:16 foo.example.org systemd[1]: dracut-shutdown.service: Control process exited, code=exited, status=1/FAILURE Oct 04 03:33:16 foo.example.org systemd[1]: dracut-shutdown.service: Failed with result 'exit-code'. Oct 04 03:33:16 foo.example.org systemd[1]: Stopped Restore /run/initramfs on shutdown.

That's because Debian is using "initrd.img-${KERNEL_VERSION}" naming but
/usr/lib/dracut/dracut-initramfs-restore does NOT take this into account.

I guess that the initrd-not-initramfs.patch needs a refresh:

You will either want to rename initramfs- to initrd.img- in https://salsa.debian.org/debian/dracut/-/blob/29707b9061841432a4ac466aa03f813d279cd46d/dracut-initramfs-restore.sh#L41-42 or add another elif clause to match Debian's initrd.img.

At least this fixed the problem for me.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.19.0-2-amd64 (SMP w/6 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dracut-core depends on:
ii  cpio       2.13+dfsg-7.1
ii  e2fsprogs  1.46.6~rc1-1
ii  kmod       30+20220630-3
ii  kpartx     0.9.0-4
ii  libc6      2.35-1
ii  libkmod2   30+20220630-3
ii  udev       251.4-3

Versions of packages dracut-core recommends:
ii  binutils       2.39-6
ii  console-setup  1.210
ii  cryptsetup     2:2.5.0-3
pn  dmraid         <none>
ii  dmsetup        2:1.02.185-1
ii  lvm2           2.03.16-1
pn  mdadm          <none>
ii  pigz           2.6-1
ii  pkg-config     0.29.2-1
ii  systemd        251.4-3

dracut-core suggests no packages.

-- no debconf information

Reply via email to