Bug#1034648: postinst runs linux-update-symlinks before initrd exists
Ben Hutchings wrote: > This behaviour is intentional. The expectation is that these symlinks > are used by programs that update the boot loader configuration later > on, and those will be run only after the initramfs has been generated. > What do you think will go wrong here? Ok, I am probably wrong in my concern then. -- see shy jo signature.asc Description: PGP signature
Bug#1034648: postinst runs linux-update-symlinks before initrd exists
Control: tag -1 moreinfo On Thu, 2023-04-20 at 16:09 -0400, Joey Hess wrote: > Source: linux > Version: 6.1.20-2 > Severity: normal > > I was upgrading a slow arm board and noticed this: > > Setting up linux-image-6.1.0-7-armmp-lpae (6.1.20-2) ... > I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.18.0-4-armmp-lpae > I: /initrd.img.old is now a symlink to boot/initrd.img-5.18.0-4-armmp-lpae > I: /vmlinuz is now a symlink to boot/vmlinuz-6.1.0-7-armmp-lpae > I: /initrd.img is now a symlink to boot/initrd.img-6.1.0-7-armmp-lpae > /etc/kernel/postinst.d/initramfs-tools: > update-initramfs: Generating /boot/initrd.img-6.1.0-7-armmp-lpae > > It probably took 5 minutes to generate the initrd, and until then > /initrd.img was a dangling symlink. A power failure in this wide window would > not be fun. This behaviour is intentional. The expectation is that these symlinks are used by programs that update the boot loader configuration later on, and those will be run only after the initramfs has been generated. What do you think will go wrong here? Ben. -- Ben Hutchings Theory and practice are closer in theory than in practice - John Levine signature.asc Description: This is a digitally signed message part
Bug#1034648: postinst runs linux-update-symlinks before initrd exists
Source: linux Version: 6.1.20-2 Severity: normal I was upgrading a slow arm board and noticed this: Setting up linux-image-6.1.0-7-armmp-lpae (6.1.20-2) ... I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.18.0-4-armmp-lpae I: /initrd.img.old is now a symlink to boot/initrd.img-5.18.0-4-armmp-lpae I: /vmlinuz is now a symlink to boot/vmlinuz-6.1.0-7-armmp-lpae I: /initrd.img is now a symlink to boot/initrd.img-6.1.0-7-armmp-lpae /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-6.1.0-7-armmp-lpae It probably took 5 minutes to generate the initrd, and until then /initrd.img was a dangling symlink. A power failure in this wide window would not be fun. -- System Information: Debian Release: 12.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.0.0-6-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_USER, TAINT_WARN Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled -- see shy jo signature.asc Description: PGP signature