* How to pick a kernel to boot ?
@ 2013-10-24 14:46 Lukáš Czerner
2013-10-24 16:44 ` Lennart Sorensen
2013-10-25 8:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 2 replies; 4+ messages in thread
From: Lukáš Czerner @ 2013-10-24 14:46 UTC (permalink / raw)
To: grub-devel
Hi,
I have a simple question about grub2 which I can not find satisfying
answer to.
What is a proper way to pick a kernel to boot from in case I have
multiple kernels installed ? Note that picking the right kernel from
the menu is not an option I do not always have access to the
console.
With grub legacy, this was easy. Simply edit
/boot/grub/menu.lst
and pick the right number. All the information I need are in that
file.
So what is a recommended way to do this with grub2 ?
Thanks!
-Lukas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to pick a kernel to boot ?
2013-10-24 14:46 How to pick a kernel to boot ? Lukáš Czerner
@ 2013-10-24 16:44 ` Lennart Sorensen
2013-10-24 17:46 ` Prarit Bhargava
2013-10-25 8:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
1 sibling, 1 reply; 4+ messages in thread
From: Lennart Sorensen @ 2013-10-24 16:44 UTC (permalink / raw)
To: The development of GNU GRUB
On Thu, Oct 24, 2013 at 04:46:19PM +0200, Lukáš Czerner wrote:
> Hi,
>
> I have a simple question about grub2 which I can not find satisfying
> answer to.
>
> What is a proper way to pick a kernel to boot from in case I have
> multiple kernels installed ? Note that picking the right kernel from
> the menu is not an option I do not always have access to the
> console.
>
> With grub legacy, this was easy. Simply edit
>
> /boot/grub/menu.lst
>
> and pick the right number. All the information I need are in that
> file.
>
> So what is a recommended way to do this with grub2 ?
Same thing in /boot/grub/grub.cfg. There is default with a number.
--
Len Sorensen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to pick a kernel to boot ?
2013-10-24 16:44 ` Lennart Sorensen
@ 2013-10-24 17:46 ` Prarit Bhargava
0 siblings, 0 replies; 4+ messages in thread
From: Prarit Bhargava @ 2013-10-24 17:46 UTC (permalink / raw)
To: grub-devel
On 10/24/2013 12:44 PM, Lennart Sorensen wrote:
> On Thu, Oct 24, 2013 at 04:46:19PM +0200, Lukáš Czerner wrote:
>> Hi,
>>
>> I have a simple question about grub2 which I can not find satisfying
>> answer to.
>>
>> What is a proper way to pick a kernel to boot from in case I have
>> multiple kernels installed ? Note that picking the right kernel from
>> the menu is not an option I do not always have access to the
>> console.
>>
>> With grub legacy, this was easy. Simply edit
>>
>> /boot/grub/menu.lst
>>
>> and pick the right number. All the information I need are in that
>> file.
>>
>> So what is a recommended way to do this with grub2 ?
>
> Same thing in /boot/grub/grub.cfg. There is default with a number.
>
Sorry ... some how left the list off my initial reply ...
To set a default to boot, use
grub2-set-default [kernel entry number]
To boot a kernel once and keep the default the same (ie, boot a kernel one time)
grub2-reboot [kernel entry number]
I've noticed a lot of people messing with /boot/grub2/grub.conf ... you
shouldn't have to do that to select a kernel to boot.
P.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to pick a kernel to boot ?
2013-10-24 14:46 How to pick a kernel to boot ? Lukáš Czerner
2013-10-24 16:44 ` Lennart Sorensen
@ 2013-10-25 8:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
1 sibling, 0 replies; 4+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2013-10-25 8:14 UTC (permalink / raw)
To: grub-devel
[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]
On 24.10.2013 16:46, Lukáš Czerner wrote:
> Hi,
>
> I have a simple question about grub2 which I can not find satisfying
> answer to.
>
> What is a proper way to pick a kernel to boot from in case I have
> multiple kernels installed ? Note that picking the right kernel from
> the menu is not an option I do not always have access to the
> console.
>
> With grub legacy, this was easy. Simply edit
>
> /boot/grub/menu.lst
>
> and pick the right number. All the information I need are in that
> file.
>
> So what is a recommended way to do this with grub2 ?
>
You can use numbers but it's a bad idea since they change on update. Use
ids As you see in menuentry:
menuentry ... $menuentry_id_option
'gnulinux-simple-000000000000000000000000000000'
Or
menuentry ... --id 'gnulinux-simple-000000000000000000000000000000'
>
> Thanks!
> -Lukas
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
> .
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-25 8:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-24 14:46 How to pick a kernel to boot ? Lukáš Czerner
2013-10-24 16:44 ` Lennart Sorensen
2013-10-24 17:46 ` Prarit Bhargava
2013-10-25 8:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).