From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1U0Kfx-0003vt-Ka for mharc-grub-devel@gnu.org; Tue, 29 Jan 2013 18:33:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0Kfs-0003uD-Ix for grub-devel@gnu.org; Tue, 29 Jan 2013 18:33:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U0Kfn-0001sW-DZ for grub-devel@gnu.org; Tue, 29 Jan 2013 18:33:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U0Kfn-0001sL-5f for grub-devel@gnu.org; Tue, 29 Jan 2013 18:33:03 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r0TNX1Ye009994 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 29 Jan 2013 18:33:01 -0500 Received: from prarit.bos.redhat.com (prarit.bos.redhat.com [10.16.184.34]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r0TNX0Bd013910; Tue, 29 Jan 2013 18:33:01 -0500 Message-ID: <51085C2C.8030206@redhat.com> Date: Tue, 29 Jan 2013 18:33:00 -0500 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: Andrey Borzenkov Subject: Re: [PATCH]: Add GRUB_DISABLE_SUBMENU option References: <1359487413-14528-1-git-send-email-prarit@redhat.com> <20130130000931.280e8823@opensuse.site> In-Reply-To: <20130130000931.280e8823@opensuse.site> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 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: Tue, 29 Jan 2013 23:33:11 -0000 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)' 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. 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? P.