Mkinitcpio; initramfs creation failed

hallo

initramfs creation failed with this error:

(4/4) Updating linux initcpios...
call to execv failed (Exec format error)
error: command failed to execute correctly

how to solve it?

Please show the full mkinitcpio log.

@naim i can’t start the system any more :frowning:
something went terribly wrong with a previous update

Likely your initramfs is corrupt now. chroot and rerun mkinitcpio -P

i am not sure, because i was able to boot in to graphical.target…but wayfire won’t start.
anyway this was my last update:


-11-09T19:19:20+0100] [PACMAN] Running 'pacman -Syu'
[2024-11-09T19:19:20+0100] [PACMAN] synchronizing package lists
[2024-11-09T19:19:22+0100] [PACMAN] starting full system upgrade
[2024-11-09T19:19:51+0100] [ALPM] running '60-mkinitcpio-remove.hook'...
[2024-11-09T19:19:51+0100] [ALPM-SCRIPTLET] Konnte execv nicht aufrufen (Fehler im Format der Programmdatei)
[2024-11-09T19:19:51+0100] [ALPM] transaction started
[2024-11-09T19:19:51+0100] [ALPM] upgraded ell (0.69-1.1 -> 0.70-1.1)
[2024-11-09T19:19:51+0100] [ALPM] upgraded intel-media-driver (24.4.1-1.1 -> 24.4.2-1.1)
[2024-11-09T19:19:51+0100] [ALPM] upgraded iwd (3.0-1.1 -> 3.1-1.1)
[2024-11-09T19:19:52+0100] [ALPM] upgraded karchive (6.7.0-1.1 -> 6.8.0-1.1)
[2024-11-09T19:19:53+0100] [ALPM] upgraded linux-cachyos (6.11.6-2 -> 6.11.7-2)
[2024-11-09T19:19:53+0100] [ALPM] upgraded qt6-declarative (6.8.0-4.1 -> 6.8.0-5.1)
[2024-11-09T19:19:53+0100] [ALPM] transaction completed
[2024-11-09T19:19:53+0100] [ALPM] running '30-systemd-daemon-reload-system.hook'...
[2024-11-09T19:19:54+0100] [ALPM] running '30-systemd-update.hook'...
[2024-11-09T19:19:54+0100] [ALPM] running '60-depmod.hook'...
[2024-11-09T19:19:55+0100] [ALPM] running '90-mkinitcpio-install.hook'...
[2024-11-09T19:19:55+0100] [ALPM-SCRIPTLET] Konnte execv nicht aufrufen (Fehler im Format der Programmdatei)
[2024-11-09T19:19:55+0100] [ALPM] running 'dbus-reload.hook'...

it doesn’t work, unfortunately :frowning:


[root@CachyOS /]# sudo mkinitcpio -P
sudo: unable to find terminal name for device 136, 1
==> Building image from preset: /etc/mkinitcpio.d/linux-cachyos.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-cachyos -g /boot/initramfs-linux-cachyos.img
==> Building image from preset: /etc/mkinitcpio.d/linux-cachyos.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-cachyos -g /boot/initramfs-linux-cachyos-fallback.img -S autodetect
[root@CachyOS /]# ls --full-time /boot
total 43704
drwxr-xr-x 5 root root     2048 2024-10-26 16:49:54.000000000 +0200 EFI
-rwxr-xr-x 1 root root 11471886 2024-11-05 21:10:52.000000000 +0100 initramfs-linux-cachyos-fallback.img
-rwxr-xr-x 1 root root 11471886 2024-11-05 21:10:52.000000000 +0100 initramfs-linux-cachyos.img
-rwxr-xr-x 1 root root  8123392 2024-10-30 00:52:44.000000000 +0100 intel-ucode.img
drwxr-xr-x 3 root root     2048 2024-11-10 14:01:54.000000000 +0100 loader
-rwxr-xr-x 1 root root 13677056 2024-11-02 15:59:06.000000000 +0100 vmlinuz-linux-cachyos

the same with pacstrap

[liveuser@CachyOS ~]$ sudo pacstrap /mnt linux-cachyos
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
 cachyos                               507.5 KiB   382 KiB/s 00:01 [------------------------------------] 100%
 core is up to date
 extra is up to date
 multilib is up to date
warning: downgrading package linux-cachyos (6.11.7-2 => 6.11.7-1)
resolving dependencies...
looking for conflicting packages...

Package (1)            Old Version  New Version  Net Change

cachyos/linux-cachyos  6.11.7-2     6.11.7-1      -0.19 MiB

Total Installed Size:  140.76 MiB
Net Upgrade Size:       -0.19 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                     [------------------------------------] 100%
(1/1) checking package integrity                                   [------------------------------------] 100%
(1/1) loading package files                                        [------------------------------------] 100%
(1/1) checking for file conflicts                                  [------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Removing linux initcpios...
call to execv failed (Exec format error)
error: command failed to execute correctly
:: Processing package changes...
(1/1) downgrading linux-cachyos                                    [------------------------------------] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating linux initcpios...
call to execv failed (Exec format error)
error: command failed to execute correctly
[liveuser@CachyOS ~]$ ls --full-time /mnt/boot
total 43704
drwxr-xr-x 5 root root     2048 2024-10-26 14:49:54.000000000 +0000 EFI
-rwxr-xr-x 1 root root 11471886 2024-11-05 20:10:52.000000000 +0000 initramfs-linux-cachyos-fallback.img
-rwxr-xr-x 1 root root 11471886 2024-11-05 20:10:52.000000000 +0000 initramfs-linux-cachyos.img
-rwxr-xr-x 1 root root  8123392 2024-10-29 23:52:44.000000000 +0000 intel-ucode.img
drwxr-xr-x 3 root root     2048 2024-11-10 13:01:54.000000000 +0000 loader
-rwxr-xr-x 1 root root 13677056 2024-11-02 14:59:06.000000000 +0000 vmlinuz-linux-cachyos