All of lore.kernel.org
 help / color / mirror / Atom feed
From: Colin Watson <cjwatson@ubuntu.com>
To: grub-devel@gnu.org
Subject: Configuration option to disable os-prober?
Date: Wed, 8 Jul 2009 16:38:23 +0100	[thread overview]
Message-ID: <20090708153823.GA7367@riva.ucam.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

Hi,

Some people seem to want to disable os-prober for various reasons (e.g.
they have lots of test installations lying around that they don't
normally want to get in the way, or they don't want installations on
external drives to be included permanently in the boot menu, etc.). Now,
they can just remove the os-prober package, but that doesn't really
scale as other packages are allowed to depend on it too.

Perhaps we could have a configuration option for this? Patch attached.

Thanks,

-- 
Colin Watson                                       [cjwatson@ubuntu.com]

[-- Attachment #2: grub.os-prober.diff --]
[-- Type: text/x-diff, Size: 482 bytes --]

Index: util/grub.d/30_os-prober.in
===================================================================
--- util/grub.d/30_os-prober.in	(revision 2402)
+++ util/grub.d/30_os-prober.in	(working copy)
@@ -22,6 +22,10 @@
 
 . ${libdir}/grub/grub-mkconfig_lib
 
+if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
+  exit 0
+fi
+
 if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
   # missing os-prober and/or linux-boot-prober
   exit 0

             reply	other threads:[~2009-07-08 15:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08 15:38 Colin Watson [this message]
2009-07-08 17:22 ` Configuration option to disable os-prober? Pavel Roskin
2009-07-08 17:58   ` Isaac Dupree
2009-07-08 18:09     ` Pavel Roskin
2009-07-10 17:31 ` Robert Millan
2009-07-10 20:19   ` Colin Watson
2009-07-11 18:29     ` Robert Millan
2009-08-23 12:59 ` Robert Millan
2009-08-23 13:22   ` Felix Zielcke
2009-08-23 14:31     ` Colin Watson
2009-08-23 15:09       ` Felix Zielcke

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=20090708153823.GA7367@riva.ucam.org \
    --to=cjwatson@ubuntu.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.