You are not logged in.

#1 2014-09-01 00:48:45

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

[Solved] grub-mkconfig not picking up new kernel

Hi,

I compiled the linux-lts kernel from source today, woohoo! First time compiling from source.  Fun!

I followed the Kernels/Compilation/Traditional - Archwiki.  No problems at all in the Build Configuration and Compilation & Installation steps.  The issue is that when I try to add the new kernel to grub.cfg

# grub-mkconfig -o /boot/grub.d/grub.cfg

it does not pick up my new kernel.  Here's the contents of /boot:

% ll /boot                                                                                                                                                   ~
total 27444
drwxr-xr-x  3 root root     4096 Aug 31 17:13 .
drwxr-xr-x 18 root root     4096 Jul 18 16:09 ..
lrwxrwxrwx  1 root root       26 Aug 31 17:13 System.map -> /boot/System.map-linux-lts
-rw-r--r--  1 root root  2455967 Aug 31 17:13 System.map-linux-lts
drwxr-xr-x  2 root root     4096 Aug 31 17:26 grub
-rw-r--r--  1 root root 11152827 Aug 30 18:10 initramfs-linux-fallback.img
-rw-r--r--  1 root root  3332339 Aug 31 17:10 initramfs-linux-lts.img
-rw-r--r--  1 root root  3364808 Aug 15 11:37 initramfs-linux.img
-rw-r--r--  1 root root  3792336 Aug 31 17:04 vmlinux-linux-lts
-rw-r--r--  1 root root  3982880 Aug 13 22:43 vmlinuz-linux

Here's the output of grub-mkconfig:

# grub-mkconfig -o /boot/grub/grub.cfg                                                                                                                  ~
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initramfs image: /boot/initramfs-linux-fallback.img
done

I've tried a bit of googling, checking journalctl, but haven't come up with anything, I've also retraced my steps in the wiki process about 3-4 times.  I'm hoping someones bumped into this before, maybe I'm missing something obvious?

Thanks for your time!

Last edited by oktorok (2014-09-01 07:19:04)

Offline

#2 2014-09-01 05:15:11

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [Solved] grub-mkconfig not picking up new kernel

ArchWiki wrote:

# cp -v arch/x86/boot/bzImage /boot/vmlinuz-YourKernelName

According to your "ls" your lts kernel is named "vmlinux-linux-lts" -- try renaming it "vmlinuz-linux-lts"

Offline

#3 2014-09-01 07:18:48

oktorok
Member
From: San Francisco, Ca
Registered: 2014-06-18
Posts: 70

Re: [Solved] grub-mkconfig not picking up new kernel

lullllzlzl.  Oh man, I'm not even going to deprecate myself here, or make excuses. To be perfectly honest, I'm glad it was a typo and not a real issue.  I can't thank you enough for pointing this out.  Gladly marked solved. smile smile smile

Offline

#4 2014-09-01 14:45:41

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [Solved] grub-mkconfig not picking up new kernel

You're welcome. Thank you for providing all the output in your first post.

Offline

Board footer

Powered by FluxBB