Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1010978: live-boot breaks some upgrades

28 views
Skip to first unread message

fsmithred

unread,
May 14, 2022, 9:50:03 AM5/14/22
to
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

Olivier Allard-Jacquin

unread,
Jul 2, 2022, 6:00:03 AM7/2/22
to
Hi,

I confirm that below fsmithred's patch work fine :

> Maybe change line #148 from this:
>
> copy_exec /usr/bin/mount /bin
>
> To this:
>
> copy_exec "$(command -v mount)" /bin
>

Tested on two debian-live build mechanism, based on debian/testing/amd64.

Best regards,
Olivier
0 new messages