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

Bug#1010978: live-boot breaks some upgrades



Package: live-boot
Version: 1:20220505

Upgrade of live-boot fails in systems that do not have the usrmerge symlinks.


apt upgrade ends with the following:

update-initramfs: Generating /boot/initrd.img-5.17.0-1-amd64
W: No zstd in /usr/bin:/sbin:/bin, using gzip
W: Possible missing firmware /lib/firmware/i915/adlp_dmc_ver2_14.bin for
module i915
live-boot: core filesystems dm-verityE:
/usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.17.0-1-amd64 with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess
returned error exit status 1
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libglib2.0-0:amd64 (2.72.1-1) ...
Setting up libgtk-3-0:amd64 (3.24.33-2) ...
Setting up gir1.2-gtk-3.0:amd64 (3.24.33-2) ...
Setting up qemu-system-gui (1:7.0+dfsg-6) ...
Processing triggers for libc-bin (2.33-7) ...
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)


Suggested fix (not tested):

/usr/bin/mount is currently hard-coded in
/usr/share/initramfs-tools/hooks/live
https://salsa.debian.org/live-team/live-boot/-/blob/master/backend/initramfs-tools/live.hook

Maybe change line #148 from this:

    copy_exec /usr/bin/mount /bin

To this:

    copy_exec "$(command -v mount)" /bin


Reply to: