grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Configuration option to disable os-prober?


From: Robert Millan
Subject: Re: Configuration option to disable os-prober?
Date: Sun, 23 Aug 2009 14:59:51 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Looks like this one was forgotten.  I've committed it.

Btw, in the future please include ChangeLog entries when submitting patches.

On Wed, Jul 08, 2009 at 04:38:23PM +0100, Colin Watson wrote:
> 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                                       address@hidden

> 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

> _______________________________________________
> Grub-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]