sys-boot/grub: update postinst warnings for multislot
authorMike Gilbert <floppym@gentoo.org>
Wed, 24 Aug 2016 18:11:19 +0000 (14:11 -0400)
committerMike Gilbert <floppym@gentoo.org>
Wed, 24 Aug 2016 18:11:55 +0000 (14:11 -0400)
Package-Manager: portage-2.3.0_p22

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

index 75d6dd14254ac563b844298a5f2a6fcf85bf9d79..3bc7b41de711649166079228b455509bcea4665b 100644 (file)
@@ -287,7 +287,7 @@ pkg_postinst() {
 
        if [[ -e "${ROOT%/}/boot/grub2/grub.cfg"  ]]; then
                ewarn "The grub directory has changed from /boot/grub2 to /boot/grub."
-               ewarn "Please run grub2-install and grub2-mkconfig -o /boot/grub/grub.cfg."
+               ewarn "Please run $(usex multislot grub2 grub)-install and $(usex multislot grub2 grub)-mkconfig -o /boot/grub/grub.cfg."
 
                if [[ ! -e "${ROOT%/}/boot/grub/grub.cfg" ]]; then
                        mkdir -p "${ROOT%/}/boot/grub"
@@ -315,7 +315,7 @@ pkg_postinst() {
                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 "Please re-run $(usex multislot grub2 grub)-install to address a security flaw when using"
                                ewarn "username/password authentication in grub."
                                ewarn "See bug 568326 for more information."
                        fi