redhat part extended to handle gen2 images
This commit is contained in:
Родитель
cf9ee80ee6
Коммит
fced4a399e
|
@ -25,6 +25,9 @@ if [[ $isRedHat == "true" ]]; then
|
|||
# https://bugzilla.redhat.com/show_bug.cgi?id=1850193
|
||||
# This needs to be fixed as soon as the bug with grub2-mkconfig is solved too
|
||||
if [[ ($(grep -qe 'ID="rhel"' /etc/os-release) -eq 0) && ($(grep -qe 'VERSION_ID="8.[1-2]"' /etc/os-release) -eq 0) ]]; then
|
||||
if [[ -d /sys/firmware/efi ]]; then
|
||||
grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
|
||||
else
|
||||
yum install -y patch
|
||||
cat > /boot/grub2/grub-cfg.patch <<EOF
|
||||
11,12c
|
||||
|
@ -37,6 +40,7 @@ EOF
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $isUbuntu == "true" ]]; then
|
||||
set_grub_default
|
||||
|
|
Загрузка…
Ссылка в новой задаче