Updating kernel results in unable to boot system

Today I updated my kernel, and it appears that it is not generating the proper files needed to boot my command line output (chrooted from a usb drive) looks like this

[manjaro boot]# pacman -S linux515 linux515-headers linux515-nvidia
warning: linux515-5.15.65-1 is up to date -- reinstalling
warning: linux515-nvidia-515.65.01-8 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (4) pahole-1:1.23-1  linux515-5.15.65-1  linux515-headers-5.15.65-1
             linux515-nvidia-515.65.01-8

Total Download Size:    31.99 MiB
Total Installed Size:  281.26 MiB
Net Upgrade Size:      137.37 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 linux515-headers...    31.7 MiB  35.5 MiB/s 00:01 [######################] 100%
 pahole-1:1.23-1-...   289.0 KiB  12.3 MiB/s 00:00 [######################] 100%
 Total (2/2)            32.0 MiB  33.2 MiB/s 00:01 [######################] 100%
(4/4) checking keys in keyring                     [######################] 100%
(4/4) checking package integrity                   [######################] 100%
(4/4) loading package files                        [######################] 100%
(4/4) checking for file conflicts                  [######################] 100%
(4/4) checking available disk space                [######################] 100%
:: Running pre-transaction hooks...
(1/1) Save Linux kernel modules
:: Processing package changes...
(1/4) reinstalling linux515                        [######################] 100%
(2/4) installing pahole                            [######################] 100%
(3/4) installing linux515-headers                  [######################] 100%
(4/4) reinstalling linux515-nvidia                 [######################] 100%
:: Running post-transaction hooks...
(1/6) Arming ConditionNeedsUpdate...
(2/6) Updating module dependencies...
(3/6) Updating linux initcpios...
call to execv failed (Exec format error)
error: command failed to execute correctly
(4/6) Updating Kernel initcpios for Nvidia-DRM...
(5/6) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done
(6/6) Restore Linux kernel modules

==> Warning:
	 -> This computer hasn't been restarted for a while.
	 -> You are running an old kernel. In order to use a
	 -> new version of the kernel, please restart your
	 -> computer as soon as possible.
	
	
[manjaro boot]# cd /boot
[manjaro boot]# ls
amd-ucode.img  efi  grub  linux515-x86_64.kver  memtest86+

What could be causing this?

can you boot on USB live manjaro
open a terminal and a browser no this topic
and report

sudo manjaro-chroot -a
mhwd-kernel -li
mhwd -li
ls /etc/mkinitcpio.d/*.preset
ls /boot/
ls /lib/modules/
exit ( end-chroot )

You are using hooks to avoid restarting your system even if kernel and modules has been updated.

I think the package is called kernel-alive.

This may cause missing kernel or kernel modules.

I remember a thread on the subject

And there is others as well

here is the output

[manjaro /]# mhwd-kernel -li
Currently running: 5.15.60-1-MANJARO (linux515)
The following kernels are installed in your system:
   * linux515
[manjaro /]# mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
          video-nvidia            2021.12.18               false            PCI


Warning: No installed USB configs!
[manjaro /]# ls /etc/mkinitcpio.d/*.preset
ls: cannot access '/etc/mkinitcpio.d/*.preset': No such file or directory
[manjaro /]# ls /boot/
amd-ucode.img  efi  grub  linux515-x86_64.kver  memtest86+
[manjaro /]# ls /lib/modules/
5.15.65-1-MANJARO  extramodules-5.15-MANJARO

SOLVED: apparently my mkinitcpio-install script got deleted somehow and the update deleted the old files but was not able to install the new stuff because the script wasn’t there

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.