From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MfCg5-00023N-Ov for mharc-grub-devel@gnu.org; Sun, 23 Aug 2009 09:00:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfCg0-000229-DE for grub-devel@gnu.org; Sun, 23 Aug 2009 09:00:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfCft-0001zg-NX for grub-devel@gnu.org; Sun, 23 Aug 2009 09:00:03 -0400 Received: from [199.232.76.173] (port=56720 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfCfs-0001zG-Jt for grub-devel@gnu.org; Sun, 23 Aug 2009 08:59:57 -0400 Received: from xvm-190-8.ghst.net ([217.70.190.8]:56358 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MfCfs-00005L-3y for grub-devel@gnu.org; Sun, 23 Aug 2009 08:59:56 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1MfCfo-0008P4-Il; Sun, 23 Aug 2009 14:59:52 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1MfCfn-0005oy-Mi; Sun, 23 Aug 2009 14:59:51 +0200 Date: Sun, 23 Aug 2009 14:59:51 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090823125951.GC22272@thorin> References: <20090708153823.GA7367@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090708153823.GA7367@riva.ucam.org> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Colin Watson Subject: Re: Configuration option to disable os-prober? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2009 13:00:05 -0000 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 [cjwatson@ubuntu.com] > 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 > Grub-devel@gnu.org > 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."