[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1075780: update-initramfs works from command line, dpkg hangs after invoking update-initramfs.



Package: linux-image-6.1.0-22-amd64

The installation of linux-image-6.1.0-22-amd64 hung while configuring linux-image-6.1.0-22-amd64, and I have been stuck since with a half-configured linux-image with no option to resolve, preventing dpkg and apt from running.

update-initramfs works if run from the command line, but dpkg freezes after invoking it.

$ uname -a
Linux debian 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux
$

$ dpkg --list | grep linux-image
ii  linux-image-6.1.0-21-amd64                    6.1.90-1                            amd64        Linux 6.1 for 64-bit PCs (signed)
iF  linux-image-6.1.0-22-amd64                    6.1.94-1                            amd64        Linux 6.1 for 64-bit PCs (signed)
rc  linux-image-amd64                             6.1.94-1                            amd64        Linux for 64-bit PCs (meta-package)
$
$ sudo update-initramfs -u -v -k 6.1.0-22-amd64
update-initramfs: Generating /boot/initrd.img-6.1.0-22-amd64
<snip>
...
<snip>
Calling hook cryptroot-unlock
Adding script /usr/share/cryptsetup/initramfs/bin/cryptroot-unlock
/usr/share/initramfs-tools/scripts/init-premount/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-top/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-premount/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-bottom/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-block/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/panic/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/init-bottom/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/init-top/ORDER ignored: not executable
Building cpio /boot/initrd.img-6.1.0-22-amd64.new initramfs 
/boot/initrd.img-6.1.0-22-amd64
<--- Command completes after a few seonds, and I am returned to the command line prompt.
$
$ ll /boot | grep 6.1.0-2
-rw-r--r-- 1 root root   259504 May  3 08:36 config-6.1.0-21-amd64
-rw-r--r-- 1 root root   259504 Jun 20 23:59 config-6.1.0-22-amd64
-rw-r--r-- 1 root root 56512061 Jun 30 16:32 initrd.img-6.1.0-21-amd64
-rw-r--r-- 1 root root 56498551 Jul  4 07:52 initrd.img-6.1.0-22-amd64
-rw-r--r-- 1 root root       83 May  3 08:36 System.map-6.1.0-21-amd64
-rw-r--r-- 1 root root       83 Jun 20 23:59 System.map-6.1.0-22-amd64
-rw-r--r-- 1 root root  8169408 May  3 08:36 vmlinuz-6.1.0-21-amd64
-rw-r--r-- 1 root root  8173504 Jun 20 23:59 vmlinuz-6.1.0-22-amd64
$

When invoking dpkg, it hangs after seemingly completing update-initramfs:

$ sudo dpkg --configure -a
Setting up linux-image-6.1.0-22-amd64 (6.1.94-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-22-amd64
<snip>
...
<snip>
Calling hook cryptroot-unlock
Adding script /usr/share/cryptsetup/initramfs/bin/cryptroot-unlock
/usr/share/initramfs-tools/scripts/init-premount/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-top/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-premount/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-bottom/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/local-block/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/panic/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/init-bottom/ORDER ignored: not executable
/usr/share/initramfs-tools/scripts/init-top/ORDER ignored: not executable
Building cpio /boot/initrd.img-6.1.0-22-amd64.new initramfs <--- Hangs here until forcibly killed.

End-result is that linux-image-6.1.0-22-amd64 remains in half-configured state:

$ dpkg --list | grep linux-image
ii  linux-image-6.1.0-21-amd64                    6.1.90-1                            amd64        Linux 6.1 for 64-bit PCs (signed)
iF  linux-image-6.1.0-22-amd64                    6.1.94-1                            amd64        Linux 6.1 for 64-bit PCs (signed)
rc  linux-image-amd64                             6.1.94-1                            amd64        Linux for 64-bit PCs (meta-package)
$

Have I stumbled on a bug?

Reply to: