sys-boot/grub: Add postinst warning about security bug
authorMike Gilbert <floppym@gentoo.org>
Fri, 18 Dec 2015 16:54:42 +0000 (11:54 -0500)
committerMike Gilbert <floppym@gentoo.org>
Fri, 18 Dec 2015 16:54:59 +0000 (11:54 -0500)
Package-Manager: portage-2.2.26_p32

sys-boot/grub/grub-2.02_beta2-r8.ebuild

index abfeffba89f8b45aacf5f7072484520d686719a7..90e03995228d3bcd8adbcc89a1e07cf09b72e8e3 100644 (file)
@@ -309,5 +309,14 @@ pkg_postinst() {
                optfeature "Detect other operating systems (grub-mkconfig)" sys-boot/os-prober
                optfeature "Create rescue media (grub-mkrescue)" dev-libs/libisoburn
                optfeature "Enable RAID device detection" sys-fs/mdadm
+       else
+               local v
+               for v in ${REPLACING_VERSIONS}; do
+                       if ! version_is_at_least 2.02_beta2-r8 ${v}; then
+                               ewarn "Please re-run grub2-install to address a security flaw when using"
+                               ewarn "username/password authentication in grub."
+                               ewarn "See bug 568326 for more information."
+                       fi
+               done
        fi
 }