You are not logged in.

#1 2011-08-07 19:33:38

krnekhelesh
Member
From: Netherlands
Registered: 2011-05-11
Posts: 39

[SOLVED] Linux Kernel 3.0 Update

This is regarding the linux kernel 3.0 update announcement which was posted on arch linux website. It said that the kernel26 package has been named to linux (looking forward to the 3.0 kernel update), however in that announcement they mention that the filenames has been changed from vmlinuz26 to vmlinuz-linuxkernel26.img to initramfs-linux.img and kernel26-fallback.img to initramfs-linux-fallback.img.

Can someone please confirm if the change has to be made only to /boot/grub/menu.lst or else where as well? This is pretty important which is why I am making sure.

Thanks for your input!

Last edited by krnekhelesh (2011-08-07 20:05:59)

Offline

#2 2011-08-07 19:43:26

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] Linux Kernel 3.0 Update

The only place I've made the change is the bootloader (and deleted the symlinks as recommended) and everything is working fine.


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2011-08-07 19:53:52

krnekhelesh
Member
From: Netherlands
Registered: 2011-05-11
Posts: 39

Re: [SOLVED] Linux Kernel 3.0 Update

May I ask where do you delete the symlinks from?

Offline

#4 2011-08-07 20:02:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Linux Kernel 3.0 Update

http://projects.archlinux.org/svntogit/ … ux.install

      # add compat symlinks for the initramfs images
      ln -sf initramfs-linux${KERNEL_NAME}.img boot/kernel26${KERNEL_NAME}.img
      ln -sf initramfs-linux${KERNEL_NAME}-fallback.img \
        boot/kernel26${KERNEL_NAME}-fallback.img

The links will be in /boot, 'ls -l /boot' will show you which files point where and when you remove with 'rm -i' you will be asked do you want to remove symbolic links (as opposed to removing files).

Offline

#5 2011-08-07 20:05:44

krnekhelesh
Member
From: Netherlands
Registered: 2011-05-11
Posts: 39

Re: [SOLVED] Linux Kernel 3.0 Update

Thanks a lot!

Offline

#6 2011-08-07 20:10:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Linux Kernel 3.0 Update

Can somebody tell me why our package page isn't updated? Does it sync once a day like ABS?

Edit: Actually, it's a very poor place to ask this question, I forgot that it's not an 'Official linux 3 thread'. Sorry.

Edit 2: Aaand it's fixed already :-)

Last edited by karol (2011-08-07 20:15:01)

Offline

#7 2011-08-07 20:34:57

fettouhi
Member
Registered: 2007-05-07
Posts: 745

Re: [SOLVED] Linux Kernel 3.0 Update

What is the best way to update if you are using grub? Just manually edit grub.cfg or run grub-mkconfig?

Offline

#8 2011-08-07 20:37:44

krnekhelesh
Member
From: Netherlands
Registered: 2011-05-11
Posts: 39

Re: [SOLVED] Linux Kernel 3.0 Update

I am running grub and you have to edit the /boot/grub/menu.lst file. The announcement mentioned above tells you what to change in that file. I just installed linux 3.0 and edited the menu.lst file. It works perfectly.

Offline

#9 2011-08-07 21:34:56

fettouhi
Member
Registered: 2007-05-07
Posts: 745

Re: [SOLVED] Linux Kernel 3.0 Update

Well that is fine for grub but for grub2 it is generally advised NOT to manually edit /boot/grub/grub.cfg but to use one of the scripts to do the edit. Since I just switched to grub2 (did a refresh reinstall of Arch 64bit) I don't exactly what scripts to use in order to change grub.cfg. Hence the question.

Offline

#10 2011-08-07 21:45:48

whitetimer
Member
Registered: 2010-05-23
Posts: 207

Re: [SOLVED] Linux Kernel 3.0 Update

Hi All

I have just upgraded my system with the new kernel, grub etc but i am stuck with how to make this change

To prevent you from breaking your system after the update, symlinks are created so that your bootloader configuration pointing to the old files will still work. However we recommend updating your bootloader configuration and deleting the symlinks afterwards.

Any help please ?

Many thanks

Whitetimer

Offline

#11 2011-08-07 21:52:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Linux Kernel 3.0 Update

Remove the symlinks from your /boot. The names start with 'kernel26'.
https://bbs.archlinux.org/viewtopic.php … 82#p971982

Last edited by karol (2011-08-07 21:53:12)

Offline

#12 2011-08-07 21:52:58

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: [SOLVED] Linux Kernel 3.0 Update

Just to clarify, the update SHOULD work without any changes to the bootloader, that's what the symlinks are for. So, before you destroy your bootloader, just reboot without changing anything.

Offline

#13 2011-08-07 21:53:08

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] Linux Kernel 3.0 Update

If you updated the menu.lst you made the change... post your menu.lst


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#14 2011-08-07 21:53:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Linux Kernel 3.0 Update

Merging...

# edit: and stickied for a while


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2011-08-07 22:06:05

Trisatr
Member
Registered: 2011-07-12
Posts: 8

Re: [SOLVED] Linux Kernel 3.0 Update

LoL, I just wasted 10 min becase I did not change kernel /vmlinuz-linux to kernel /boot/vmlinuz-linux in pacnew config. Same for initrd.

Last edited by Trisatr (2011-08-07 22:06:42)

Offline

#16 2011-08-07 22:10:56

lucak3
Member
From: Italy
Registered: 2010-01-23
Posts: 72

Re: [SOLVED] Linux Kernel 3.0 Update

Thanks for the hard work you put into this so that we won't bang our heads on the wall.
I only want to make a note about menu.lst.pacnew : in the Arch Linux entry,

/boot/vmlinuz26

has been replaced by

/vmlinuz-linux

instead of the intuitive

/boot/vmlinuz-linux

and similarly for kernel26.img . Now, i suppose the latter is the correct one, but could you clear away my doubts before i reboot ?


The Linux philosophy is 'laugh in the face of danger'. Oops. Wrong one. 'Do it yourself'. That's it. - Linus Torvalds

Offline

#17 2011-08-07 22:12:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Linux Kernel 3.0 Update

lucak3 wrote:

Thanks for the hard work you put into this so that we won't bang our heads on the wall.
I only want to make a note about menu.lst.pacnew : in the Arch Linux entry,

/boot/vmlinuz26

has been replaced by

/vmlinuz-linux

instead of the intuitive

/boot/vmlinuz-linux

and similarly for kernel26.img . Now, i suppose the latter is the correct one, but could you clear away my doubts before i reboot ?

It depends whether you have a separate /boot partition or not. Use '/boot/vmlinuz-linux' if you don't have a separate one.
This has nothing to do w/ intuition :-)

Last edited by karol (2011-08-07 22:13:25)

Offline

#18 2011-08-07 22:14:34

lucak3
Member
From: Italy
Registered: 2010-01-23
Posts: 72

Re: [SOLVED] Linux Kernel 3.0 Update

karol wrote:

It depends whether you have a separate /boot partition or not.

No, i don't. I suppose i should leave it as /boot/vmlinuz-linux, right?


The Linux philosophy is 'laugh in the face of danger'. Oops. Wrong one. 'Do it yourself'. That's it. - Linus Torvalds

Offline

#19 2011-08-07 22:15:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Linux Kernel 3.0 Update

lucak3 wrote:
karol wrote:

It depends whether you have a separate /boot partition or not.

No, i don't. I suppose i should leave it as /boot/vmlinuz-linux, right?

Yup, that's right.

Offline

#20 2011-08-07 22:29:06

krnekhelesh
Member
From: Netherlands
Registered: 2011-05-11
Posts: 39

Re: [SOLVED] Linux Kernel 3.0 Update

Here is part of my menu.lst (/boot/grub) for those who use GRUB

As you can see kernel26.img has been changed to initramfs-linux.img and vmlinuz26 has been changed to vmlinuz-linux and kernel26-fallback.img has been changed to initramfs-linux-fallback.img

# (0) Arch Linux
title Arch Linux
root (hd0,4)
kernel /vmlinuz-linux root=/dev/sda6 ro quiet
initrd /initramfs-linux.img

# (1) Arch Linux
title Arch Linux Fallback
root (hd0,4)
kernel /vmlinuz-linux root=/dev/sda6 ro quiet
initrd /initramfs-linux-fallback.img

The contents of my /boot directory are

grub
initramfs-linux-fallback.img
initramfs-linux.img
lost+found
vmlinuz-linux

I hope this clarifies everything.

Offline

#21 2011-08-07 22:47:30

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: [SOLVED] Linux Kernel 3.0 Update

In my menu.lst I currently have

kernel /vmlinuz-linux root=/dev/disk/by-uuid/a0c4a1d1-c545-4d8f-b228-825e6b31fbab

and in the menu.lst.pacnew I noticed it is

kernel /vmlinuz-linux root=/dev/sda3

Should I change it to sda3 or is it fine the way it is?

Offline

#22 2011-08-07 22:48:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Linux Kernel 3.0 Update

dodo3773 wrote:

In my menu.lst I currently have

kernel /vmlinuz-linux root=/dev/disk/by-uuid/a0c4a1d1-c545-4d8f-b228-825e6b31fbab

and in the menu.lst.pacnew I noticed it is

kernel /vmlinuz-linux root=/dev/sda3

Should I change it to sda3 or is it fine the way it is?

Keep it the way you have it now, /dev/disk/by-uuid/ ...

Offline

#23 2011-08-07 22:49:05

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] Linux Kernel 3.0 Update

@dodo - no, that is an example and may not reflect the partition layout of your system.  Using uuids is fine.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#24 2011-08-07 22:53:22

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: [SOLVED] Linux Kernel 3.0 Update

karol wrote:

Keep it the way you have it now, /dev/disk/by-uuid/ ...

Thanks &

@graysky Thanks.

Offline

#25 2011-08-07 23:39:59

Calamulus
Member
Registered: 2011-08-07
Posts: 6

Re: [SOLVED] Linux Kernel 3.0 Update

fettouhi wrote:

Well that is fine for grub but for grub2 it is generally advised NOT to manually edit /boot/grub/grub.cfg but to use one of the scripts to do the edit. Since I just switched to grub2 (did a refresh reinstall of Arch 64bit) I don't exactly what scripts to use in order to change grub.cfg. Hence the question.

For any GRUB2 users that haven't figured it out yet, you just need to delete the symlinks and then run

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

and it will automagically update your grub.cfg. In fact you can leave the symlinks there if you are paranoid as it seems grub-mkconfig ignores them.

Last edited by Calamulus (2011-08-07 23:42:30)

Offline

Board footer

Powered by FluxBB