You are not logged in.

#1 2023-11-13 06:47:37

publicimageltd
Member
Registered: 2023-11-13
Posts: 6

[SOLVED] On boot, "initramfs unpacking failed", but booting continues

On booting, I get the message:

initramfs iunpacking failed: invalid magic of start of compressed archive 

But then the boot process continues normally.

Gathering from what I found in the net, this seems to be an issue with the compression method used. I am using the defaults, however, and running

mkinitcio -P

had no effect.

So my questions are:
- How can I check manually that the compression is correct (apart from looking at the configuration files, which seem to be ok)?
- Why can I boot event though the system does not seem to be able to load the ramfs? Looking at the output of journalctl, the message is just included in the logs as any other message, and there is no further error.
- And eventually, what can I do against the cause of that disquieting message?

I'm an a freshly installed Arch System, on a Lenove T14 with AMD Ryzen. I have two partiions, the EFI (/boot) and a second LUKS partition which is then split into / and home/. Besides that message, everthing seems to work fine.

BTW, I am using arch linux for a decade now, and this being the first time on such a forum, I want to mention how much I like the stability of the distribution and the excellent documentation! Thanks to everyone!

Last edited by publicimageltd (2023-11-14 20:27:25)

Offline

#2 2023-11-13 06:50:51

publicimageltd
Member
Registered: 2023-11-13
Posts: 6

Re: [SOLVED] On boot, "initramfs unpacking failed", but booting continues

OK, I found out how to identify the compression method:

 
$ file /boot/initramfs-linux.img 
/boot/initramfs-linux.img: Zstandard compressed data (v0.8+), Dictionary ID: None

So compression seems to match, since the default is zstd.

Offline

#3 2023-11-14 20:26:54

publicimageltd
Member
Registered: 2023-11-13
Posts: 6

Re: [SOLVED] On boot, "initramfs unpacking failed", but booting continues

Fixed it. Actually there was a warning from mkinitcpio that there is no consolefont. So I removed the hook in mkinitcpio.conf (deleted consolefont), rerun mkinitcpio, and now everything is fine again.

Offline

#4 2023-11-15 19:05:42

publicimageltd
Member
Registered: 2023-11-13
Posts: 6

Re: [SOLVED] On boot, "initramfs unpacking failed", but booting continues

And we are back on the train - after the last system update, the message is back. :shrug:

Offline

Board footer

Powered by FluxBB