From: Prarit Bhargava <prarit@redhat.com>
To: grub-devel@gnu.org
Subject: Re: [PATCH]: Add GRUB_DISABLE_SUBMENU option
Date: Wed, 30 Jan 2013 08:39:04 -0500 [thread overview]
Message-ID: <51092278.9000907@redhat.com> (raw)
In-Reply-To: <20130130090021.5e4e7e06@opensuse.site>
>>
>> /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 :)
Heh :) Fair enough :)
>
> How is user going to know which number to type? Open grub.cfg and count?
This is what I used to do in grub1 ... I wrote a nice little script that dumped
the contents of grub config and enumerated the entries so that I could select
which one I wanted.
FWIW, I could do *exactly* the same thing with grub2, but I'm wondering if there
is a "better" way so that the kernel debugging users of grub2 could all benefit.
> 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.
You're right, and I'm not saying it is :) I like to provide a decent use-case
scenario with a patch so people who read it later understand _why_ I've made a
change.
>
>> 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 :)
I've talked with a few other kernel engineers, and they like the idea of just
adding GRUB_DISABLE_SUBMENU="true" to /etc/default/grub ... IMO it still seems
like the easiest approach.
Beyond the grub-reboot stuff, do you have any objections to the patch going in?
Thanks for your input (and the info!) Andrey. That was really helpful :)
P.
next prev parent reply other threads:[~2013-01-30 13:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-29 19:23 [PATCH]: Add GRUB_DISABLE_SUBMENU option Prarit Bhargava
2013-01-29 20:09 ` Andrey Borzenkov
2013-01-29 23:33 ` Prarit Bhargava
2013-01-30 5:00 ` Andrey Borzenkov
2013-01-30 13:39 ` Prarit Bhargava [this message]
2013-11-03 23:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-04 12:43 ` [PATCH] document GRUB_DISABLE_SUBMENU Andrey Borzenkov
2013-11-04 13:15 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-04 14:27 ` Andrey Borzenkov
2013-11-04 16:09 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-10 13:20 ` Andrey Borzenkov
2013-11-10 13:35 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-10 13:59 ` Barry Jackson
2013-11-10 14:38 ` Andrey Borzenkov
2013-11-10 14:48 ` 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=51092278.9000907@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).