just to be sure, install the 5.10 kernel:
sudo mhwd-kernel -i linux510
when its done run again:
sudo mkinitcpio -P
Still getting
call to execv failed (Permission denied)
error: command failed to execute correctly
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
-> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.65-1-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
-> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -Sautodetect
==> Starting build: 5.15.65-1-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qla1280
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> Image generation successful
damn …it didnt detect the 5.10 kernel … i really have no idea … i would suggest to close this topic, since the grub is being detected and create a new topic - something like: 'mkinitcpio command doesnt work - doesnt detects kernels'
and provide info that you are getting these errors:
(16/44) Updating linux initcpios...
call to execv failed (Permission denied)
error: command failed to execute correctly
and that you tried uninstalling mkinitcpio + its dependencies, then installing it back, and it still doesnt work …
we should have also reinstalled pacman and its dependecies, i think this could help … so what do you say? lets give it a try
I went to eat just now. I’ll create a new topic.
ok… lets try reinstall the pacman … install:
sudo pacman -S arch-install-scripts
-you do it from your system, no need to use live usb
reinstall pacman + deps:
sudo pacstrap -i bash pacman glibc libarchive curl gpgme gettext gawk coreutils gnupg grep fakeroot perl pacman-mirrors appstream-glib base libpamac mhwd packagekit pkgfile manjaro-keyring
if there are no errors, uninstall the 510 kernel:
sudo mhwd-kernel -r linux510
then install it again:
sudo mhwd-kernel -i linux510
check with:
sudo mkinitcpio -P
➜ ~ sudo pacstrap -i bash pacman glibc libarchive curl gpgme gettext gawk coreutils gnupg grep fakeroot perl pacman-mirrors appstream-glib base libpamac mhwd packagekit pkgfile manjaro-keyring
==> ERROR: bash is not a directory
damn … just checked and it wont work in normal system unfortunately …
so you have to boot again into live usb:
install:
sudo pacman -S arch-install-scripts
mount:
sudo mount /dev/nvme0n1p5 /mnt
reinstall:
sudo pacstrap -i /mnt bash pacman glibc libarchive curl gpgme gettext gawk coreutils gnupg grep fakeroot perl pacman-mirrors appstream-glib base libpamac mhwd packagekit pkgfile manjaro-keyring
if there are no errors, unmount:
sudo umount /dev/nvme0n1p5
then chroot and remove the 5.10 kernel:
mhwd-kernel -r linux510
then install it again:
mhwd-kernel -i linux510
check with:
mkinitcpio -P
if it didnt work, then hopefully someone will help you out in the new topic you created …
[manjaro /]# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
-> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.65-1-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
-> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.65-1-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qla1280
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> Image generation successful
unfortunately it didnt work … so hopefully someone help you out in the other topic, which already has a reply, so check it out …
I’m getting these errors when I tried to install kernel.
(4/7) Updating linux initcpios...
call to execv failed (Permission denied)
error: command failed to execute correctly
I tried uninstalling mkinitcpio + its dependencies, then installing it back, and it still doesnt work. I also reinstalled pacman and its dependecies but it didn’t help.
- Post command with full output.
- What thought process made you think that this has anything to do with detecting kernels?
- Post
ls -l /usr/share/libalpm/scripts/mkinitcpio-install
➜ ~ sudo mhwd-kernel -i linux510
:: Synchronizing package databases...
core 166.2 KiB 5.41 MiB/s 00:00 [#############################################################################] 100%
extra 1955.5 KiB 38.2 MiB/s 00:00 [#############################################################################] 100%
community 7.3 MiB 37.7 MiB/s 00:00 [#############################################################################] 100%
multilib 180.5 KiB 17.6 MiB/s 00:00 [#############################################################################] 100%
warning: linux510-5.10.141-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) linux510-5.10.141-1
Total Installed Size: 80.01 MiB
Net Upgrade Size: 0.00 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%
(1/1) checking available disk space [#############################################################################] 100%
:: Running pre-transaction hooks...
(1/2) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
(2/2) Remove upgraded DKMS modules
:: Processing package changes...
(1/1) reinstalling linux510 [#############################################################################] 100%
ldconfig: /usr/lib/libwacom.so.2 is not a symbolic link
:: Running post-transaction hooks...
(1/7) Arming ConditionNeedsUpdate...
(2/7) Updating module dependencies...
(3/7) Install DKMS modules
(4/7) Updating linux initcpios...
call to execv failed (Permission denied)
error: command failed to execute correctly
(5/7) Updating Kernel initcpios for Nvidia-DRM...
(6/7) Refreshing PackageKit...
(7/7) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/tela/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
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.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
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
I was told that the 5.10 kernel was not detected. Here’s mkinitcpio output:
➜ ~ sudo mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
-> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.65-1-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
-> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.65-1-MANJARO
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qla1280
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> Image generation successful
➜ ~ ls -l /usr/share/libalpm/scripts/mkinitcpio-install
-rwxr-xr-x 1 root root 1417 Jul 5 13:06 /usr/share/libalpm/scripts/mkinitcpio-install
Probably this:
You can also use Maxi
to collect information about the boot process and kernels. This works,
- when you are in your running system (with CTRL+ALT+F2).
- And also in a live environment
Here it is
Currently running: 5.15.65-1-MANJARO (linux515)
linux510 <vmlinuz missing> ∑<sha?> <initrd missing>= fallback=<no>∑<sha?>
linux515 vmlinuz-5.15-x86_64∑dbd2~78e7 <initrd missing>= fallback=33M ∑<sha?>
Modules in: /lib/modules Checksumming all modules may take a while
modules510 5.10.141-1-MANJARO=94M ∑cffb~1907 extramodules-5.10-MANJARO=0K∑8ba2~41f7
modules515 5.15.65-1-MANJARO =121M∑0b1b~8e7e extramodules-5.15-MANJARO=0K∑c6ba~9a7a
Info about: /etc/default/grub
GRUB_DEFAULT =saved
GRUB_TIMEOUT =10
GRUB_TIMEOUT_STYLE =menu
GRUB_DISTRIBUTOR ="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor udev.log_priority=3"
GRUB_CMDLINE_LINUX ="video=HDMI-1:2560x1440@74:2560x1440@74.97"
GRUB_SAVEDEFAULT =true
GRUB_PRELOAD_MODULES ="part_gpt part_msdos"
GRUB_DISABLE_OS_PROBER =false
GRUB_THEME ="/usr/share/grub/themes/tela/theme.txt"
Info about: /etc/mkinitcpio.conf
MODULES =()
BINARIES =()
FILES =()
HOOKS =(base udev autodetect modconf block filesystems keyboard fsck)
# COMPRESSION ="gzip"
# COMPRESSION ="bzip2"
# COMPRESSION ="lzma"
# COMPRESSION ="xz"
# COMPRESSION ="lzop"
# COMPRESSION ="lz4"
# COMPRESSION ="zstd"
Info about: efi bootloaders
/boot/efi/EFI/Microsoft/Boot/cbmr_driver.efi 132K ∑2334~22e3
/boot/efi/EFI/Boot/fbx64.efi 84K ∑52c7~341c
/boot/efi/EFI/Boot/mmx64.efi 840K ∑d66f~97a9
/boot/efi/EFI/Boot/bkpbootx64.efi 936K ∑f037~4619
/boot/efi/EFI/Boot/bootx64.efi 148K ∑d57c~afa3
/boot/efi/EFI/Boot/fbia32.efi 72K ∑dd3c~b4cd
/boot/efi/EFI/ubuntu/shimx64.efi 936K ∑f037~4619
/boot/efi/EFI/ubuntu/mmx64.efi 840K ∑d66f~97a9
/boot/efi/EFI/Manjaro/grubx64.efi 148K ∑d57c~afa3
/boot/efi/EFI/GRUB/grubx64.efi 148K ∑d57c~afa3
/boot/grub/x86_64-efi/grub.efi 148K ∑965f~169b
/boot/grub/x86_64-efi/core.efi 148K ∑d57c~afa3
Info about: efi vars (needs efibootmgr)
Boot0000* Windows Boot Manager HD(1,GPT,dae8d12e-2322-4796-9422-77218601369f,0x800,0x82000) \EFI\Microsoft\Boot\bootmgfw.efi
Boot0002* manjaro HD(1,GPT,dae8d12e-2322-4796-9422-77218601369f,0x800,0x82000) \EFI\manjaro\grubx64.efi
Does the same happen if you install, say, linux519
?
Also post output of pacman -Qi libwacom
.
Yes
➜ ~ sudo mhwd-kernel -i linux519
:: Synchronizing package databases...
core 166.2 KiB 4.92 MiB/s 00:00 [#######################################################] 100%
extra 1955.5 KiB 33.5 MiB/s 00:00 [#######################################################] 100%
community 7.3 MiB 45.5 MiB/s 00:00 [#######################################################] 100%
multilib 180.5 KiB 12.6 MiB/s 00:00 [#######################################################] 100%
resolving dependencies...
looking for conflicting packages...
Packages (1) linux519-5.19.7-1
Total Download Size: 179.82 MiB
Total Installed Size: 184.02 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
linux519-5.19.7-1-x86_64 179.8 MiB 49.3 MiB/s 00:04 [#######################################################] 100%
(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%
(1/1) checking available disk space [#######################################################] 100%
:: Processing package changes...
(1/1) installing linux519 [#######################################################] 100%
Optional dependencies for linux519
wireless-regdb: to set the correct wireless channels of your country [installed]
ldconfig: /usr/lib/libwacom.so.2 is not a symbolic link
:: Running post-transaction hooks...
(1/7) Arming ConditionNeedsUpdate...
(2/7) Updating module dependencies...
(3/7) Install DKMS modules
(4/7) Updating linux initcpios...
call to execv failed (Permission denied)
error: command failed to execute correctly
(5/7) Updating Kernel initcpios for Nvidia-DRM...
(6/7) Refreshing PackageKit...
(7/7) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/tela/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
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.
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
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
➜ ~ pacman -Qi libwacom
Name : libwacom
Version : 2.4.0-1
Description : Library to identify Wacom tablets and their features
Architecture : x86_64
URL : https://github.com/linuxwacom/libwacom/wiki
Licenses : MIT
Groups : None
Provides : None
Depends On : glib2 systemd libgudev
Optional Deps : python-libevdev: for libwacom-show-stylus [installed]
Required By : gnome-settings-daemon libinput libwacom1
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 683.21 KiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Build Date : Sun Aug 7 05:12:34 2022
Install Date : Fri Sep 16 18:43:05 2022
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
This has nothing to do with mkinitcpio, but I still wonder - post output of:
ls -l /usr/lib/libwacom*
pacman -Qo /usr/lib/libwacom*
And then
sudo pacman -S linux519
sudo pacman -Qk 1> /dev/null