From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VZOzQ-0004Ad-Jv for mharc-grub-devel@gnu.org; Thu, 24 Oct 2013 13:46:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50970) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZOzJ-00049V-DV for grub-devel@gnu.org; Thu, 24 Oct 2013 13:46:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZOz8-0005bA-Gx for grub-devel@gnu.org; Thu, 24 Oct 2013 13:46:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZOz8-0005aP-9B for grub-devel@gnu.org; Thu, 24 Oct 2013 13:46:14 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9OHkCcS006709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 24 Oct 2013 13:46:13 -0400 Received: from prarit.bos.redhat.com ([10.18.17.119]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r9OHkCnJ032113 for ; Thu, 24 Oct 2013 13:46:12 -0400 Message-ID: <52695CE4.2060407@redhat.com> Date: Thu, 24 Oct 2013 13:46:12 -0400 From: Prarit Bhargava User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110419 Red Hat/3.1.10-1.el6_0 Thunderbird/3.1.10 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: How to pick a kernel to boot ? References: <20131024164446.GT13097@csclub.uwaterloo.ca> In-Reply-To: <20131024164446.GT13097@csclub.uwaterloo.ca> Content-Type: text/plain; charset=UTF-8 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.redhat.com id r9OHkCcS006709 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Oct 2013 17:46:31 -0000 On 10/24/2013 12:44 PM, Lennart Sorensen wrote: > On Thu, Oct 24, 2013 at 04:46:19PM +0200, Luk=C3=A1=C5=A1 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 ? >=20 > Same thing in /boot/grub/grub.cfg. There is default with a number. >=20 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 on= e 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.