You are not logged in.
Hello everybody!
during system upgrade got this mesage
update-initramfs: Generating /boot/initrd.img-5.10.0-16-686-pae
W: No zstd in /usr/bin:/sbin:/bin, using gzip
trying to install 'zstd' got this one
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-16-686-pae
live-boot: core filesystems dm-verityE: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.10.0-16-686-pae with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
any help is appreciated!
thank you in advance!
Edit: did some goooooogling but still no result
# dpkg -C
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
initramfs-tools generic modular initramfs generator (automation)
# dpkg --configure initramfs-tools
Setting up initramfs-tools (0.142) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-9-686-pae
live-boot: core filesystems dm-verityE: /usr/share/initramfs-tools/hooks/live failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.10.0-9-686-pae with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
# apt install --reinstall -o Dpkg::Options::="--force-confmiss" initramfs-tools
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 19 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for initramfs-tools:i386
Last edited by amaro (2022-09-10 06:29:10)
Offline
Hello everybody!
during system upgrade got this mesage
update-initramfs: Generating /boot/initrd.img-5.10.0-16-686-pae W: No zstd in /usr/bin:/sbin:/bin, using gzip
trying to install 'zstd' got this one
update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.142) ... update-initramfs: Generating /boot/initrd.img-5.10.0-16-686-pae live-boot: core filesystems dm-verityE: /usr/share/initramfs-tools/hooks/live failed with return 1. update-initramfs: failed for /boot/initrd.img-5.10.0-16-686-pae with 1. dpkg: error processing package initramfs-tools (--configure): installed initramfs-tools package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
any help is appreciated!
thank you in advance!
The part concerning to dm-verity in /usr/share/initramfs-tools/hooks/live should be as follows:
# dm-verity support
if [ "${DISABLE_DM_VERITY:-}" != "true" ] && [ "${DISABLE_DM_VERITY:-}" != "yes" ]
then
[ "${QUIET}" ] || echo -n " dm-verity"
manual_add_modules dm-verity
# The BusyBox mount does not support dm-verity so we use the util-linux version.
copy_exec /bin/mount
fi
The problem arises trying to copy the mount binary, which is located at /bin instead of /usr/bin. So, the line:
copy_exec /usr/bin/mount /bin
must be replaced with:
copy_exec /bin/mount
in live-boot-initramfs-tools
If you work systematically, things will come by itself (Lev D. Landau)
Offline
thank you, aitor!
editing '/usr/share/initramfs-tools/hooks/live' solved it.
Offline