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

Bug#1075780: marked as done (update-initramfs works from command line, dpkg hangs after invoking update-initramfs.)



Your message dated Fri, 22 Nov 2024 22:49:20 +0100 (CET)
with message-id <20241122214920.B4C48BE2EE7@eldamar.lan>
and subject line Closing this bug (BTS maintenance for src:linux bugs)
has caused the Debian Bug report #1075780,
regarding update-initramfs works from command line, dpkg hangs after invoking update-initramfs.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1075780: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075780
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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?

--- End Message ---
--- Begin Message ---
Hi

This bug was filed for a very old kernel or the bug is old itself
without resolution.

If you can reproduce it with

- the current version in unstable/testing
- the latest kernel from backports

please reopen the bug, see https://www.debian.org/Bugs/server-control
for details.

Regards,
Salvatore

--- End Message ---

Reply to: