Bug#1020769: grub: please don't warn about os-prober if it's not even installed

Mattia Rizzolo mattia at debian.org
Mon Sep 26 11:01:24 BST 2022


Package: grub-common
Version: 2.06-4
Severity: minor
Tags: patch

Dear grub maintainer,

I've been somewhat bothered by the warning about os-prober:

    Warning: os-prober will not be executed to detect other bootable partitions.
    Systems on them will not be added to the GRUB boot configuration.
    Check GRUB_DISABLE_OS_PROBER documentation entry.

I appreciate the security issue, however this system never ever had
os-prober installed in it...


Looking at the 30_os-prober script, I notice that it first checks for
the GRUB_DISABLE_OS_PROBER variable and only later actually check if
os-prober is even available.  I think this should be switched, so that
if os-prober is not even there the warning dosn't go off.

I'm attaching a patch, I'll let you forward it to upstream however they
like it, or incorporate it as a local patch... (or just diregard me :P)

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
More about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub_os-prober.diff
Type: text/x-diff
Size: 1068 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20220926/b167b4c9/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20220926/b167b4c9/attachment.sig>


More information about the Pkg-grub-devel mailing list