From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1U0Pmf-0004eF-Kx for mharc-grub-devel@gnu.org; Wed, 30 Jan 2013 00:00:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0Pmd-0004dI-GA for grub-devel@gnu.org; Wed, 30 Jan 2013 00:00:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0Pmc-0003k6-FV for grub-devel@gnu.org; Wed, 30 Jan 2013 00:00:27 -0500 Received: from mail-lb0-f169.google.com ([209.85.217.169]:39496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0Pmc-0003jv-7g for grub-devel@gnu.org; Wed, 30 Jan 2013 00:00:26 -0500 Received: by mail-lb0-f169.google.com with SMTP id m4so1688957lbo.0 for ; Tue, 29 Jan 2013 21:00:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding; bh=IOXlcV28cCJNCl1cns9u+g+5S91kTS/ZnIQOQ6qJaXA=; b=Gt+z5SFKTGL9f5uN/aQWCQUAseGnEiMhE6uNfdqsX9Ke0yyq3kaxBGFKLOrK804cyK H0Wldl7G/pHNjEz05yoZ0J7LDFrXKwkHRbm85zdMgHpNI9sZS11OucJBKk09kyeMsgz1 S1jWQjbp6yrjBhgWpgzv5jgMsUh5P8C2W4QDyt/W0Ayp6BWYQFqS9NuHlIZk1pOs8vBD edG94uf2daHZ7wEYLGnHR8lvqLYVNol6LIzI9BXuHEXrTfL6IAeOpcaMHYLZFsmWLtuX +343U3LEqIinXCJF4kLqsUOLYJbMblYP3vdOx8zCygyGGb4pYO+kg3klBxM64JxfTs9u ad3A== X-Received: by 10.152.136.20 with SMTP id pw20mr3292499lab.16.1359522025036; Tue, 29 Jan 2013 21:00:25 -0800 (PST) Received: from opensuse.site (ppp91-78-198-46.pppoe.mtu-net.ru. [91.78.198.46]) by mx.google.com with ESMTPS id n7sm141633lbg.3.2013.01.29.21.00.23 (version=SSLv3 cipher=RC4-SHA bits=128/128); Tue, 29 Jan 2013 21:00:23 -0800 (PST) Date: Wed, 30 Jan 2013 09:00:21 +0400 From: Andrey Borzenkov To: Prarit Bhargava Subject: Re: [PATCH]: Add GRUB_DISABLE_SUBMENU option Message-ID: <20130130090021.5e4e7e06@opensuse.site> In-Reply-To: <51085C2C.8030206@redhat.com> References: <1359487413-14528-1-git-send-email-prarit@redhat.com> <20130130000931.280e8823@opensuse.site> <51085C2C.8030206@redhat.com> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.10; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.217.169 Cc: The development of GNU GRUB 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: Wed, 30 Jan 2013 05:00:28 -0000 В Tue, 29 Jan 2013 18:33:00 -0500 Prarit Bhargava пишет: > > > On 01/29/2013 03:09 PM, Andrey Borzenkov wrote: > >> The problem is that the submenus get in the way of doing this. grub2-reboot > >> does not allow one to set a reboot to a specific kernel. > >> > > > > It does. > > > > sudo /usr/sbin/grub2-reboot 'Advanced options for openSUSE 12.2>openSUSE 12.2, with Linux 3.4.6-2.10-desktop (recovery mode)' > > > > better is to use menuentry id, but this works too. > > Hi Andrey, > > Interesting :), and I'm not going to deny I could code a script to do that. > > However, given the large number of requests for disabling the submenus (google > "grub2 disable submenus") it would still be preferable to myself and others > (from just a general debug point of view) to be able to have the entries in a > single list so that I can use the numeric feature of grub2-reboot. > > ie) /usr/sbin/grub2-reboot 2 > > is always easier than having to type > > /usr/sbin/grub2-reboot 'Advanced options for openSUSE 12.2>openSUSE 12.2, with > Linux 3.4.6-2.10-desktop (recovery mode)' > That's what good command line completion is for. Really :) How is user going to know which number to type? Open grub.cfg and count? > which requires me to grep through grub.cfg, figure out what submenu I'm under, > and figure out what the entry is. > > Again, I could script that out, but there seems to be enough momentum behind > disabling the submenus that I think the patch may still have some merit. > Actually I have patch to disable submenu somewhere around as well. So I can well understand your feelings, I just think this is unrelated to grub-reboot. > Alternatively, would you object to me to adding some additional functionality to > grub2-reboot that would grep grub.cfg and display a menu of entries so that > 'grub2-reboot #number' would work with submenus? > I think something like "grub-reboot --select" would be interesting, yes. But it is not for me to decide :)