Blame SOURCES/99-grub-mkconfig.install

d9d99f
#!/bin/bash
d9d99f
d9d99f
if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then
d9d99f
    exit 0
d9d99f
fi
d9d99f
d9d99f
ARCH=$(uname -m)
d9d99f
b71686
[[ -f /etc/default/grub ]] && . /etc/default/grub
b71686
b71686
# Can't assume a BLS capable bootloader on ppc64
b71686
if [[ x$GRUB_ENABLE_BLSCFG != xfalse &&
b71686
	  $ARCH != "ppc64" && $ARCH != "ppc64le" ]]; then
d9d99f
    exit 0
d9d99f
fi
d9d99f
d9d99f
COMMAND="$1"
d9d99f
d9d99f
case "$COMMAND" in
d9d99f
    add|remove)
d9d99f
        grub2-mkconfig --no-grubenv-update -o /boot/grub2/grub.cfg >& /dev/null
d9d99f
        ;;
d9d99f
    *)
d9d99f
        ;;
d9d99f
esac