qubes-core-admin-linux/system-config/kernel-grub2.install
Marek Marczykowski-Górecki 0e733bd0de
kernel-install: call grub2-mkconfig only when it is installed
On systems booting with EFI, there is no grub2 installed at all - the
system is started directly to xen.efi.
2015-09-26 02:54:32 +02:00

17 lines
289 B
Bash
Executable File

#!/bin/sh
COMMAND="$1"
KVER="$2"
case "$COMMAND" in
add)
dracut -f "/boot/initramfs-${KVER}.img" "$KVER"
;;
remove)
rm -f "/boot/initramfs-${KVER}.img"
;;
esac
if [ -x /usr/sbin/grub2-mkconfig ]; then
grub2-mkconfig -o /boot/grub2/grub.cfg
fi