You are not logged in.

#1 2009-02-08 09:39:46

BR
Member
From: Australia
Registered: 2008-07-08
Posts: 20

kernel not compiling

I can run pacman -Syu and reboot without problems, but when I just update the kernel and run "mkinitcpio -g kernel26" I get errors. It seems to be looking for ARCH ... -25 instead of looking for -28. What am I missing that -Syu seems to take care of? I'd really like to find out what is going on without having to always rely on pacman's auto update.

Offline

#2 2009-02-08 10:31:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: kernel not compiling

FYI - what you're talking about is the creation of the initramfs image by mkinitcpio. The kernel is already compiled.

When you upgrade the kernel, mkinitcpio is run automatically by the kernel package's post-install script, so it is not necessary to run it again. It is failing for you because you have not rebooted after upgrading the kernel, so the installed package and the running kernel are not in sync. You can see this for yourself by comparing the output of uname -r and pacman -Q kernel26.

To see what you're missing, read the mkinitcpio man page, and have a look at the post-install script. You'll find it in /var/lib/pacman/local.

Offline

Board footer

Powered by FluxBB