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: Felix Zielcke
Subject: Re: Configuration option to disable os-prober?
Date: Sun, 23 Aug 2009 15:22:41 +0200

Am Sonntag, den 23.08.2009, 14:59 +0200 schrieb Robert Millan:
> 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
> 

Oh just noticed this now.
Doestn't grub-mkconfig need to export it so it's actually usable
in /etc/default/grub?

-- 
Felix Zielcke
Proud Debian Maintainer





reply via email to

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