Blame SOURCES/99-grub-mkconfig.install

8631a2
#!/bin/bash
8631a2
8631a2
if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then
8631a2
    exit 0
8631a2
fi
8631a2
8631a2
ARCH=$(uname -m)
8631a2
8631a2
# Is only needed for ppc64* since we can't assume a BLS capable bootloader there
8631a2
if [[ $ARCH != "ppc64" && $ARCH != "ppc64le" ]]; then
8631a2
    exit 0
8631a2
fi
8631a2
8631a2
[[ -f /etc/default/grub ]] && . /etc/default/grub
8631a2
8631a2
COMMAND="$1"
8631a2
8631a2
case "$COMMAND" in
8631a2
    add|remove)
8631a2
        grub2-mkconfig --no-grubenv-update -o /boot/grub2/grub.cfg >& /dev/null
8631a2
        ;;
8631a2
    *)
8631a2
        ;;
8631a2
esac