From: Michael Chang <MChang@suse.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [PATCH] 30_os-prober: Provide GRUB_OS_PROBER_DISABLE_DEBUG
Date: Tue, 16 Jul 2019 07:28:32 +0000 [thread overview]
Message-ID: <20190716072819.GA32066@mazu> (raw)
In-Reply-To: <20190715162654.GA3712@riva.ucam.org>
On Mon, Jul 15, 2019 at 05:26:55PM +0100, Colin Watson wrote:
> On Mon, Jul 15, 2019 at 09:28:31AM +0000, Michael Chang wrote:
> > This patch adds support to disable os-prober debug output while running
> > grub-mkconfig through GRUB_OS_PROBER_DISABLE_DEBUG=true in simple
> > configuration interface. The os-prober needs to support the
> > OS_PROBER_DISABLE_DEBUG environment variable, which was introduced by
> > 1.72 release.
>
> Rather than extending the /etc/default/grub configuration interface for
> this, I wonder if it would be better to just do something like this in
> 30_os-prober:
>
> export OS_PROBER_DISABLE_DEBUG="${OS_PROBER_DISABLE_DEBUG-y}"
>
> That way, people who want details can set OS_PROBER_DISABLE_DEBUG= (i.e.
> empty) when running grub-mkconfig, or we could add a --debug option or
> something; but otherwise debug output will be suppressed, which seems
> like a better default for grub-mkconfig.
What about changing the os-prober default to disable the debug output ?
In that way we don't need to patch grub, just do this to enable it.
export OS_PROBER_ENABLE_DEBUG=y; grub-mkconfig
Btw, the intention of using /etc/default/grub is to make the change
persistent to os-prober as it has no settings for that, and is in a
documented way. I'm fine doing it either way, because the thing here is
to suppress os-prober debug output as default, and re-enable it by
settings or command line interface are all viable imho.
Thanks,
Michael
>
> --
> Colin Watson [cjwatson@ubuntu.com]
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
next prev parent reply other threads:[~2019-07-16 7:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-15 9:28 [PATCH] 30_os-prober: Provide GRUB_OS_PROBER_DISABLE_DEBUG Michael Chang
2019-07-15 16:26 ` Colin Watson
2019-07-16 7:28 ` Michael Chang [this message]
2019-07-23 18:41 ` Colin Watson
2019-07-25 10:27 ` Michael Chang
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=20190716072819.GA32066@mazu \
--to=mchang@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.