nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone
8631a2
#!/bin/bash
8631a2
8631a2
if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then
8631a2
    exit 0
8631a2
fi
8631a2
8631a2
ARCH=$(uname -m)
8631a2
f6e916
[[ -f /etc/default/grub ]] && . /etc/default/grub
f6e916
f6e916
# Can't assume a BLS capable bootloader on ppc64
f6e916
if [[ x$GRUB_ENABLE_BLSCFG != xfalse &&
f6e916
	  $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