The officially official Devuan Forum!

You are not logged in.

#1 2022-05-09 09:37:38

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 58  
Website

[Ceres] apt: initramfs-tools post-installation error [SOLVED]

Hi,

Today, during my weekly update, the process of apt fails with this error:

# apt update && apt upgrade -y
(...)
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Paramétrage de initramfs-tools (0.141) ...
update-initramfs: deferring update (trigger activated)
Traitement des actions différées (« triggers ») pour initramfs-tools (0.141) ...
update-initramfs: Generating /boot/initrd.img-5.17.0-1-amd64
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: erreur de traitement du paquet initramfs-tools (--configure) :
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Des erreurs ont été rencontrées pendant l'exécution :
 initramfs-tools
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Next, I tried a `dpkg configure` as:

# dpkg --configure -a
Paramétrage de initramfs-tools (0.141) ...
update-initramfs: deferring update (trigger activated)
Traitement des actions différées (« triggers ») pour initramfs-tools (0.141) ...
update-initramfs: Generating /boot/initrd.img-5.17.0-1-amd64
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: erreur de traitement du paquet initramfs-tools (--configure) :
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Des erreurs ont été rencontrées pendant l'exécution :
 initramfs-tools

Same result!

For the `update-initramfs -uv` command, see the paste : https://0x0.st/omms.txt


How can I fix this?

Last edited by PengouinPdt (2022-05-17 11:41:23)

Offline

#2 2022-05-09 14:30:52

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,380  

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

Bonjour PengouinPdt, ça va?

PengouinPdt wrote:
live-boot: core filesystems dm-verityE: /usr/share/initramfs-tools/hooks/live failed with return 1.

From where did you obtain that hook? It shouldn't be present in an installed system.

Here are the standard hooks: https://salsa.debian.org/kernel-team/in … ster/hooks

And for future reference my French is (almost) passable but you can make the terminal commands speak English by putting LC_ALL=C before the command.


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Online

#3 2022-05-09 15:00:42

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 58  
Website

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

Hi, @Head_on_a_stick

From where did you obtain that hook? It shouldn't be present in an installed system.

I dont known!

Offline

#4 2022-05-09 15:52:12

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,079  

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

I saw this same error a few days ago. I don't remember what I was doing, and I'm not sure what I did to fix it. Looking around, I see that I reinstalled initramfs-tools on my daedalus system four days ago. Maybe that was it. I also see that I got an upgrade of initramfs-core (to version 0.141) about 10 days ago.

Sorry I can't be more certain about this.

Edit: Here's my exact command history. Looks like I couldn't upgrade until I reinstalled initramfs-tools.

 1968  apt update
 1969  exit
 1970  less /var/log/apt/history.log
 1971  less /var/log/apt/history.log.1
 1972  zless /var/log/apt/history.log.1.gz 
 1973  aptitude reinstall initramfs-tools
 1974  exit
 1975  less /var/log/apt/history.log
 1976  less /var/log/apt/history.log.1
 1977  less /var/log/apt/history.log.1.gz 
 1978  zless /var/log/apt/history.log.1.gz 
 1979  exit
 1980  apt upgrade
 1981  exit

Offline

#5 2022-05-09 18:05:46

rolfie
Member
Registered: 2017-11-25
Posts: 647  

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

Maybe it helps: Updated my Daedalus VM w/Mate today, worked fine, no issues.

Offline

#6 2022-05-09 18:58:37

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,380  

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

@OP: try

# apt purge live-boot-initramfs-tools open-infrastructure-system-boot

^ Those packages provide that hook and should not be installed except in the live environment.


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Online

#7 2022-05-09 19:17:08

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 58  
Website

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

@rolfie: Daedalus is not an Unstable version. It's the future "stable", actual "testing".
See: https://www.devuan.org/os/releases


Installing the `usrmerge` package solves the problem; update continues without fails.

---

@Head_on_a_stick: purge done! (but only live-boot-initramfs-tools was installed)

Offline

#8 2022-05-11 15:06:24

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,079  

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

I ran into this again today on an upgrade in daedalus. Temporary solution is to downgrade live-boot and live-boot-initramfs-tools to version 1:20210208 which I downloaded from a debian mirror.

@PenguinPdt: How did you come up with the idea to add usrmerge? What's the connection?

BTW, Daedalus is about a week behind Ceres. They are mostly the same right now until Bookworm goes into freeze.

Edit/Update: Better fix is to put the following line in /etc/live/boot.conf

DISBLE_DM_VERITY=true

This issue will affect anyone who has refractasnapshot installed, because it depends on live-boot.

Offline

#9 2022-05-12 07:58:53

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 58  
Website

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

@fsmithred: the connection about usrmerge?
On french forum debian-fr.org, one user specifies que dm-verity use `mount` binary:

# 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 /usr/bin/mount /bin
fi

On Devuan, the mount binary is not, by default, on /usr/bin/mount, just on /bin/mount. Either, I create a symlink or install usrmerge. I did not want to create a symbolic link, I installed usrmerge.

Before usrmerge:

$ which -a mount
/bin/mount

After:

$ which -a mount              
/usr/bin/mount
/bin/mount

Last edited by PengouinPdt (2022-05-12 08:11:33)

Offline

#10 2022-05-12 14:04:14

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 2,380  

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

PengouinPdt wrote:

I did not want to create a symbolic link, I installed usrmerge

The usrmerge package works by creating symlinks; check ls -l /bin/mount.

Has this problem been reported to Debian as a bug?


To obtain a root shell use su -. Using just su will result in "command not found" messages.

Online

#11 2022-05-14 13:44:06

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,079  

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

Offline

#12 2022-05-17 11:31:27

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 58  
Website

Re: [Ceres] apt: initramfs-tools post-installation error [SOLVED]

@fsmithred: ty! big_smile

Offline

Board footer