Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MfD27-0005GR-0W for mharc-grub-devel@gnu.org; Sun, 23 Aug 2009 09:22:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfD24-0005Dr-Rk for grub-devel@gnu.org; Sun, 23 Aug 2009 09:22:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfD21-000587-2k for grub-devel@gnu.org; Sun, 23 Aug 2009 09:22:52 -0400 Received: from [199.232.76.173] (port=33318 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfD1z-00057t-Th for grub-devel@gnu.org; Sun, 23 Aug 2009 09:22:48 -0400 Received: from moutng.kundenserver.de ([212.227.126.188]:58956) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MfD1z-0002wa-DO for grub-devel@gnu.org; Sun, 23 Aug 2009 09:22:47 -0400 Received: from [85.180.2.245] (e180002245.adsl.alicedsl.de [85.180.2.245]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MKv1o-1MfD1u3Qsq-000GqJ; Sun, 23 Aug 2009 15:22:43 +0200 From: Felix Zielcke To: The development of GRUB 2 In-Reply-To: <20090823125951.GC22272@thorin> References: <20090708153823.GA7367@riva.ucam.org> <20090823125951.GC22272@thorin> Content-Type: text/plain Date: Sun, 23 Aug 2009 15:22:41 +0200 Message-Id: <1251033761.3612.12.camel@fz.local> Mime-Version: 1.0 X-Mailer: Evolution 2.27.90 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX18RcGqQiewlElh9RIXUDGtMLwKS7hAP1Er98sG 2kmYub21y2JKRfijMXlIdLH9C92LOZ1HveqKGhU6/pjqaBwWC4 VCNHsEdNRy/z4Qng9MxFw== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:22:53 -0000 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 [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 > 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