0e733bd0de
On systems booting with EFI, there is no grub2 installed at all - the system is started directly to xen.efi.
17 lines
289 B
Bash
Executable File
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
|