summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-03-26 11:15:58 -0400
committerMike Gilbert <floppym@gentoo.org>2021-03-26 11:16:54 -0400
commit8e4e7696c0c8169634b47581bde9e6bf9b5fad00 (patch)
tree75081859d244404728b5ec2f5f301dea4c380256
parentdev-java/tomcat-servlet-api: removed obsolete 7.0.107,8.5.61,9.0.41 (diff)
downloadgentoo-8e4e7696c0c8169634b47581bde9e6bf9b5fad00.tar.gz
gentoo-8e4e7696c0c8169634b47581bde9e6bf9b5fad00.tar.bz2
gentoo-8e4e7696c0c8169634b47581bde9e6bf9b5fad00.zip
sys-boot/grub: add warning about os-prober
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--sys-boot/grub/grub-2.06_rc1.ebuild5
-rw-r--r--sys-boot/grub/grub-9999.ebuild5
2 files changed, 10 insertions, 0 deletions
diff --git a/sys-boot/grub/grub-2.06_rc1.ebuild b/sys-boot/grub/grub-2.06_rc1.ebuild
index 480010aafdf9..88a1c7ee41f0 100644
--- a/sys-boot/grub/grub-2.06_rc1.ebuild
+++ b/sys-boot/grub/grub-2.06_rc1.ebuild
@@ -293,4 +293,9 @@ pkg_postinst() {
optfeature "Create rescue media (grub-mkrescue)" dev-libs/libisoburn
optfeature "Enable RAID device detection" sys-fs/mdadm
fi
+
+ if has_version sys-boot/os-prober; then
+ ewarn "Due to security concerns, os-prober is disabled by default."
+ ewarn "Set GRUB_DISABLE_OS_PROBER=false in /etc/default/grub to enable it."
+ fi
}
diff --git a/sys-boot/grub/grub-9999.ebuild b/sys-boot/grub/grub-9999.ebuild
index 29c5c03332ac..2e85d9e03291 100644
--- a/sys-boot/grub/grub-9999.ebuild
+++ b/sys-boot/grub/grub-9999.ebuild
@@ -293,4 +293,9 @@ pkg_postinst() {
optfeature "Create rescue media (grub-mkrescue)" dev-libs/libisoburn
optfeature "Enable RAID device detection" sys-fs/mdadm
fi
+
+ if has_version sys-boot/os-prober; then
+ ewarn "Due to security concerns, os-prober is disabled by default."
+ ewarn "Set GRUB_DISABLE_OS_PROBER=false in /etc/default/grub to enable it."
+ fi
}