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: 62  
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: 3,125  
Website

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.


Brianna Ghey — Rest In Power

Offline

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

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 62  
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,409  

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: 1,045  

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

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

Online

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

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

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.


Brianna Ghey — Rest In Power

Offline

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

PengouinPdt
Member
From: France
Registered: 2020-04-20
Posts: 62  
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,409  

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: 62  
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: 3,125  
Website

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?


Brianna Ghey — Rest In Power

Offline

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

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

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: 62  
Website

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

@fsmithred: ty! big_smile

Offline

#13 2023-01-15 13:22:24

MrReplikant
Member
Registered: 2022-12-03
Posts: 53  

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

@fsmithred, this issue did not properly land in debian/devuan. I am having issues with this bug still

Last edited by MrReplikant (2023-01-15 13:22:41)


That's all, folks.

Offline

#14 2023-01-15 19:02:06

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

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

I built live-boot packages with the fix and put them here for people to use until debian builds them. I really hope we don't have to fork live-boot for this.
https://sourceforge.net/projects/refracta/files/tools/

live-boot, live-boot-initramfs-tools and live-boot doc all from 2022-12-16.

Offline

#15 2023-01-15 22:24:48

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

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

fsmithred wrote:

I built live-boot packages with the fix and put them here for people to use until debian builds them. I really hope we don't have to fork live-boot for this.
https://sourceforge.net/projects/refracta/files/tools/

live-boot, live-boot-initramfs-tools and live-boot doc all from 2022-12-16.

So do I:

https://dev1galaxy.org/viewtopic.php?id=5244


If you work systematically, things will come by itself (Lev D. Landau)

Offline

Board footer