The officially official Devuan Forum!

You are not logged in.

#1 2022-09-10 02:50:27

amaro
Member
Registered: 2022-02-08
Posts: 97  

[SOLVED] upgrade produces initramfs-tools errors

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

#2 2022-09-10 05:43:26

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 230  
Website

Re: [SOLVED] upgrade produces initramfs-tools errors

amaro wrote:

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

#3 2022-09-10 06:28:23

amaro
Member
Registered: 2022-02-08
Posts: 97  

Re: [SOLVED] upgrade produces initramfs-tools errors

thank you, aitor!
editing '/usr/share/initramfs-tools/hooks/live' solved it.

Offline

Board footer