nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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
b32e65
[[ -f /etc/default/grub ]] && . /etc/default/grub
b32e65
b32e65
# Can't assume a BLS capable bootloader on ppc64
b32e65
if [[ x$GRUB_ENABLE_BLSCFG != xfalse &&
b32e65
	  $ARCH != "ppc64" && $ARCH != "ppc64le" ]]; then
8631a2
    exit 0
8631a2
fi
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