From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 512511387FD for ; Wed, 26 Mar 2014 16:19:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4CAACE0BFE; Wed, 26 Mar 2014 16:16:39 +0000 (UTC) Received: from uberouter3.guranga.net (unknown [77.76.70.233]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4ABA8E0BF2 for ; Wed, 26 Mar 2014 16:16:38 +0000 (UTC) Received: by uberouter3.guranga.net (Postfix, from userid 81) id 7984A82C7F; Wed, 26 Mar 2014 16:16:36 +0000 (GMT) To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] grub2 defaults X-PHP-Originating-Script: 81:rcmail.php Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 26 Mar 2014 16:16:36 +0000 From: thegeezer@thegeezer.net In-Reply-To: References: Message-ID: <679b9b8772bc9b6aafdc068a4b7c9a03@thegeezer.net> X-Sender: thegeezer@thegeezer.net User-Agent: Roundcube Webmail/0.9.5 X-Archives-Salt: 14958b45-e364-49ef-a627-9eeab29e95bc X-Archives-Hash: 8aa2f6fb73f3887ab3315174a9b94c22 On , James wrote: > Howdy, > > So I have these entries in my /etc/default/grub file: > > GRUB_DISTRIBUTOR="Gentoo" > GRUB_DEFAULT=kernel-3.13.6-gentoo I don't think this will work -- it is the title of menu entry you need not the kernel executable > GRUB_HIDDEN_TIMEOUT=3 > GRUB_TIMEOUT=10 > GRUB_GFXMODE=1024x768 > > I ran 'grub2-mkconfig -o /boot/grub/grub.cfg' > after the last ebuild of 3.13.6-gentoo > > > /boot shows: > kernel-3.13.0-gentoo > kernel-3.13.0-gentoo-r1 > kernel-3.13.1-gentoo > kernel-3.13.6-gentoo > kernel-3.13.6B-gentoo > kernel-3.13.7-gentoo > > > Obviously, I like to kept kernel experiments around a while.... > > So when I get the Grub2 (ascii) boot menu and just select the > default, it boots kernel-3.13.7-gentoo, despite > 'kernel-3.13.6-gentoo' being set in as the default for Grub2? > Grub2 seems to do things a little differently. I've been working through my list especially for headless and failed boots. you want in /etc/default/grub GRUB_DEFAULT=saved GRUB_SAVEDEFAULT=true just an aside if you are going headless you want GRUB_SAVEDEFAULT=false especially for a fallback boot option. if you don't want the selection just booted to become the default, you set this to false. once you have that you can then # grub2-set-default 'Gentoo GNU/Linux, with Linux x86_64-3.13.6-gentoo' it would be nice if there was a way of getting id menu numbers. i've not looked into the grub2-mkconfig but i get a menu with a single default option and advanced options wiht previous kernels listed in there. id numbers would not work too well with sub menus, but i recently had a message from grub saying that because my default option had been moved to the advanced option it should be amended to be # grub2-set-default 'gnulinux-x86_64-3.12.13-gentoo-advanced-a48a107b-c379-4c72-bcda-25011968eab5' also for booting an option once, on the next reboot you can use # grub2-reboot 'GNU/Linux, with Linux x86_64-6.13.6-gentoo' afaik if your kernel/initramfs use custom names e.g. PeterRabbit-vmlinuz with PoohBear-initramfs grub2-mkconfig doesn't work for you, so make sure your files conform. > Comment thoughts and suggestions, including deeper reading on grub2 > is most welcome, particulary Grub2 examples. > > Also, is there a nice 'gui' boot-menu for grub2 ? > > It seems to take several repeated attemps for grub2 to correctly > use the kernel I desire, despite what syntax/order I use. > If I boot a kernel that is not the default, it takes about 2 minutes, > then another 2 minutes of blank screen then it boot fairly quickly. > The mobo is a GA-99FXA-UD3 and this might not have the bios/uefi/??? > optimally configured? (first gigabyte moble). > > The is what I have read on grub2 (man pages, gentoo wiki) so additional > reading, with some useful examples would also be much appreciated.