2009-08-23 Colin Watson <cjwatson@ubuntu.com>

* util/grub.d/30_os-prober.in: Disable os-prober if
        `GRUB_DISABLE_OS_PROBER' was set to true.
This commit is contained in:
robertmh 2009-08-23 12:59:22 +00:00
parent 71acf5e54b
commit c8c80635ae
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2009-08-23 Colin Watson <cjwatson@ubuntu.com>
* util/grub.d/30_os-prober.in: Disable os-prober if
`GRUB_DISABLE_OS_PROBER' was set to true.
2009-08-23 Robert Millan <rmh.grub@aybabtu.com> 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
* partmap/pc.c: Rename to ... * partmap/pc.c: Rename to ...

View file

@ -22,6 +22,10 @@ libdir=@libdir@
. ${libdir}/grub/grub-mkconfig_lib . ${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 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 # missing os-prober and/or linux-boot-prober
exit 0 exit 0