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
d9d99f
# Is only needed for ppc64* since we can't assume a BLS capable bootloader there
d9d99f
if [[ $ARCH != "ppc64" && $ARCH != "ppc64le" ]]; then
d9d99f
    exit 0
d9d99f
fi
d9d99f
d9d99f
[[ -f /etc/default/grub ]] && . /etc/default/grub
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