All of lore.kernel.org
 help / color / mirror / Atom feed
* Configuration option to disable os-prober?
@ 2009-07-08 15:38 Colin Watson
  2009-07-08 17:22 ` Pavel Roskin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Colin Watson @ 2009-07-08 15:38 UTC (permalink / raw)
  To: grub-devel

[-- 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-08-23 15:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-08 15:38 Configuration option to disable os-prober? Colin Watson
2009-07-08 17:22 ` 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

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.