So I wanted to update my machine. Issued the usual:
[matelakat@homer ~]$ sudo pacman -Syu
:: Synchronizing package databases...
core 116.6 KiB 997 KiB/s 00:00 [####################################################################] 100%
extra 7.5 MiB 38.2 MiB/s 00:00 [####################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (1) linux-lts-6.6.60-1
Total Download Size: 128.38 MiB
Total Installed Size: 128.59 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
:: Retrieving packages...
linux-lts-6.6.60-1-x86_64 128.4 MiB 56.3 MiB/s 00:02 [####################################################################] 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%
:: Running pre-transaction hooks...
(1/1) Removing linux initcpios...
:: Processing package changes...
(1/1) upgrading linux-lts [####################################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'homer'
==> Using configuration file: '/etc/mkinitcpio-homer.conf'
-> -k /efiroot/EFI/homer/vmlinuz-linux-lts -c /etc/mkinitcpio-homer.conf -g /efiroot/EFI/homer/initramfs-linux-lts-homer.img
==> ERROR: '/lib/modules/6.6.59-1-lts' is not a valid kernel module directory
error: command failed to execute correctly
And it seems that I wanted to update to 6.6.60-1
, but I am running on 6.6.59-1-lts
:
[matelakat@homer ~]$ uname -a
Linux homer 6.6.59-1-lts #1 SMP PREEMPT_DYNAMIC Fri, 01 Nov 2024 06:29:43 +0000 x86_64 GNU/Linux
So I had to re-install the old kernel, and then everything went just fine:
[root@homer ~]# pacman -U /var/cache/pacman/pkg/linux-lts-6.6.59-1-x86_64.pkg.tar.zst
So now doing it again:
[root@homer ~]# pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
Packages (1) linux-lts-6.6.60-1
Total Installed Size: 128.59 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(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/1) Removing linux initcpios...
:: Processing package changes...
(1/1) upgrading linux-lts [####################################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'homer'
==> Using configuration file: '/etc/mkinitcpio-homer.conf'
-> -k /efiroot/EFI/homer/vmlinuz-linux-lts -c /etc/mkinitcpio-homer.conf -g /efiroot/EFI/homer/initramfs-linux-lts-homer.img
==> ERROR: '/lib/modules/6.6.59-1-lts' is not a valid kernel module directory
error: command failed to execute correctly
So that reproduces the issue. I need to figure out how this could be changed.