From: Prarit Bhargava <prarit@redhat.com>
To: grub-devel@gnu.org
Subject: Re: How to pick a kernel to boot ?
Date: Thu, 24 Oct 2013 13:46:12 -0400 [thread overview]
Message-ID: <52695CE4.2060407@redhat.com> (raw)
In-Reply-To: <20131024164446.GT13097@csclub.uwaterloo.ca>
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.
next prev parent reply other threads:[~2013-10-24 17:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2013-10-25 8:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52695CE4.2060407@redhat.com \
--to=prarit@redhat.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).