You are not logged in.

#1 2010-06-24 09:48:21

Lowra
Member
Registered: 2009-09-21
Posts: 192

How to add a kernel-lts boot option from grub ?

Hey,
Actually in grub I have deux boot choices:

Arch Linux => last kernel
Arch Linux Fallback => I don't know really the differences between Fallback & "normal" boot

I would like to add an entry to boot with the kernel26-lts I've just installed

Thank you wink

Offline

#2 2010-06-24 10:05:29

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: How to add a kernel-lts boot option from grub ?

What grub are you using? If it's "legacy" then it's as simple as copying an existing entry in menu.lst and edit the title, kernel, and initrd lines.

Edit: It's legacy if you installed grub, and not legacy if you installed grub2.

Last edited by fsckd (2010-06-24 10:08:16)


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2010-06-24 10:07:56

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: How to add a kernel-lts boot option from grub ?

fallback uses the same kernel, but the initramfs is created with the "default" options for the fallback one, e.g. if you accidently kicked out a filesystem driver in mkinicpio.conf, fallback will still boot.

you have to edit grub's /boot/grub/menu.lst, check the wiki or google to find out how - but it is quite easy to understand, and you can just copy an existing entry and adjust for the -lts kernel and initramfs.

damn, too slow again...

Last edited by hokasch (2010-06-24 10:08:22)

Offline

#4 2010-06-24 11:22:08

Lowra
Member
Registered: 2009-09-21
Posts: 192

Re: How to add a kernel-lts boot option from grub ?

Yes I use grub legacy smile

Someone with last kernel, and kernel-lts boot option can share his menu.lst ?

That would help me to understand tongue

Thank you fsckd, and hokasch wink

Offline

#5 2010-06-24 11:27:42

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: How to add a kernel-lts boot option from grub ?

as said before, since you keep the -lts kernel on the same partition & folder as the arch one, all you have to do is adjust the name of kernel and initramfs-image - that means copy over the arch entry, rename the title, and add -lts in the kernel and initrd line. double check the filenames in /boot/.

Offline

#6 2010-06-24 11:41:53

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: How to add a kernel-lts boot option from grub ?

Using the example from the wiki article,

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro
initrd /kernel26.img

to

# (0) Arch Linux
title  Arch Linux LTS
root   (hd0,0)
kernel /vmlinuz26-lts root=/dev/sda3 ro
initrd /kernel26-lts.img

The bold are the changes. As hokasch states, you can verify what your files are called by looking in /boot .


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#7 2010-06-24 13:07:16

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: How to add a kernel-lts boot option from grub ?

Adding a new entry is better than remving the existing ones.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2010-06-24 14:36:46

Lowra
Member
Registered: 2009-09-21
Posts: 192

Re: How to add a kernel-lts boot option from grub ?

Oki, I will try this smile

Thank you for your help all wink

Offline

#9 2010-06-24 15:18:52

Lowra
Member
Registered: 2009-09-21
Posts: 192

Re: How to add a kernel-lts boot option from grub ?

fsckd wrote:

Using the example from the wiki article,

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro
initrd /kernel26.img

to

# (0) Arch Linux
title  Arch Linux LTS
root   (hd0,0)
kernel /vmlinuz26-lts root=/dev/sda3 ro
initrd /kernel26-lts.img

The bold are the changes. As hokasch states, you can verify what your files are called by looking in /boot .

Worked Perfectly man big_smile
Thank you big_smile

Offline

Board footer

Powered by FluxBB