diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:29:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:29:52 +0000 |
commit | ca67b09c015d4af3ae3cce12aa72e60941dbb8b5 (patch) | |
tree | b7316d7b06c373e08dabb79a2c866c568e08f49e /debian/patches/grub_os-prober.patch | |
parent | Adding upstream version 2.06. (diff) | |
download | grub2-debian.tar.xz grub2-debian.zip |
Adding debian version 2.06-13+deb12u1.debian/2.06-13+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/patches/grub_os-prober.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/grub_os-prober.patch b/debian/patches/grub_os-prober.patch new file mode 100644 index 0000000..e226eab --- /dev/null +++ b/debian/patches/grub_os-prober.patch @@ -0,0 +1,22 @@ +diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in +index 225a3baf7..ea3f3f804 100644 +--- a/util/grub.d/30_os-prober.in ++++ b/util/grub.d/30_os-prober.in +@@ -40,13 +40,13 @@ EOF + fi + } + +-if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then +- grub_warn "$(gettext_printf "os-prober will not be executed to detect other bootable partitions.\nSystems on them will not be added to the GRUB boot configuration.\nCheck GRUB_DISABLE_OS_PROBER documentation entry.")" ++if ! command -v os-prober > /dev/null || ! command -v linux-boot-prober > /dev/null ; then ++ # missing os-prober and/or linux-boot-prober + exit 0 + fi + +-if ! command -v os-prober > /dev/null || ! command -v linux-boot-prober > /dev/null ; then +- # missing os-prober and/or linux-boot-prober ++if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then ++ grub_warn "$(gettext_printf "os-prober will not be executed to detect other bootable partitions.\nSystems on them will not be added to the GRUB boot configuration.\nCheck GRUB_DISABLE_OS_PROBER documentation entry.")" + exit 0 + fi + |