From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MOZEB-00058y-CE for mharc-grub-devel@gnu.org; Wed, 08 Jul 2009 11:38:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MOZE9-00053V-2J for grub-devel@gnu.org; Wed, 08 Jul 2009 11:38:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MOZE4-0004pa-4H for grub-devel@gnu.org; Wed, 08 Jul 2009 11:38:32 -0400 Received: from [199.232.76.173] (port=50449 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MOZE3-0004p3-Rj for grub-devel@gnu.org; Wed, 08 Jul 2009 11:38:27 -0400 Received: from smarthost01.mail.zen.net.uk ([212.23.3.140]:46165) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MOZE3-000873-G1 for grub-devel@gnu.org; Wed, 08 Jul 2009 11:38:27 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost01.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1MOZDz-000436-Uz for grub-devel@gnu.org; Wed, 08 Jul 2009 15:38:24 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1MOZDz-00025H-00; Wed, 08 Jul 2009 16:38:23 +0100 Date: Wed, 8 Jul 2009 16:38:23 +0100 From: Colin Watson To: grub-devel@gnu.org Message-ID: <20090708153823.GA7367@riva.ucam.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="z9LUXdM02iSxOrxu" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost01-IP: [82.69.40.219] X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: 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: Wed, 08 Jul 2009 15:38:33 -0000 --z9LUXdM02iSxOrxu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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] --z9LUXdM02iSxOrxu Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="grub.os-prober.diff" 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 --z9LUXdM02iSxOrxu--