forked from sig_core/kickstarts
add missing grub2 portions to vagrant
This commit is contained in:
parent
e671199e78
commit
230450fa9e
@ -37,6 +37,15 @@ part /boot --size=1000 --fstype=xfs --asprimary --label=boot
|
||||
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0" --grow
|
||||
|
||||
%post
|
||||
# Attempting to force legacy BIOS boot if we boot from UEFI
|
||||
if [ "$(arch)" = "x86_64" ]; then
|
||||
dnf install grub2-pc-modules grub2-pc -y
|
||||
grub2-install --target=i386-pc /dev/vda
|
||||
fi
|
||||
|
||||
# Ensure that the pmbr_boot flag is off
|
||||
parted /dev/vda disk_set pmbr_boot off
|
||||
|
||||
# configure swap to a file
|
||||
fallocate -l 2G /swapfile
|
||||
chmod 600 /swapfile
|
||||
|
@ -37,6 +37,15 @@ part /boot --size=1000 --fstype=xfs --asprimary --label=boot
|
||||
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0" --grow
|
||||
|
||||
%post
|
||||
# Attempting to force legacy BIOS boot if we boot from UEFI
|
||||
if [ "$(arch)" = "x86_64" ]; then
|
||||
dnf install grub2-pc-modules grub2-pc -y
|
||||
grub2-install --target=i386-pc /dev/vda
|
||||
fi
|
||||
|
||||
# Ensure that the pmbr_boot flag is off
|
||||
parted /dev/vda disk_set pmbr_boot off
|
||||
|
||||
# configure swap to a file
|
||||
fallocate -l 2G /swapfile
|
||||
chmod 600 /swapfile
|
||||
|
@ -37,6 +37,15 @@ part /boot --size=1000 --fstype=xfs --asprimary --label=boot
|
||||
part / --size=8000 --fstype="xfs" --mkfsoptions "-m bigtime=0,inobtcount=0" --grow
|
||||
|
||||
%post
|
||||
# Attempting to force legacy BIOS boot if we boot from UEFI
|
||||
if [ "$(arch)" = "x86_64" ]; then
|
||||
dnf install grub2-pc-modules grub2-pc -y
|
||||
grub2-install --target=i386-pc /dev/vda
|
||||
fi
|
||||
|
||||
# Ensure that the pmbr_boot flag is off
|
||||
parted /dev/vda disk_set pmbr_boot off
|
||||
|
||||
# configure swap to a file
|
||||
fallocate -l 2G /swapfile
|
||||
chmod 600 /swapfile
|
||||
|
@ -2,6 +2,15 @@
|
||||
%include rocky-vagrant-packages-hyperv.ks
|
||||
|
||||
%post
|
||||
# Attempting to force legacy BIOS boot if we boot from UEFI
|
||||
if [ "$(arch)" = "x86_64" ]; then
|
||||
dnf install grub2-pc-modules grub2-pc -y
|
||||
grub2-install --target=i386-pc /dev/vda
|
||||
fi
|
||||
|
||||
# Ensure that the pmbr_boot flag is off
|
||||
parted /dev/vda disk_set pmbr_boot off
|
||||
|
||||
# configure swap to a file
|
||||
fallocate -l 2G /swapfile
|
||||
chmod 600 /swapfile
|
||||
|
@ -2,6 +2,15 @@
|
||||
%include rocky-vagrant-packages-hyperv.ks
|
||||
|
||||
%post
|
||||
# Attempting to force legacy BIOS boot if we boot from UEFI
|
||||
if [ "$(arch)" = "x86_64" ]; then
|
||||
dnf install grub2-pc-modules grub2-pc -y
|
||||
grub2-install --target=i386-pc /dev/vda
|
||||
fi
|
||||
|
||||
# Ensure that the pmbr_boot flag is off
|
||||
parted /dev/vda disk_set pmbr_boot off
|
||||
|
||||
# configure swap to a file
|
||||
fallocate -l 2G /swapfile
|
||||
chmod 600 /swapfile
|
||||
|
@ -2,6 +2,15 @@
|
||||
%include rocky-vagrant-packages.ks
|
||||
|
||||
%post
|
||||
# Attempting to force legacy BIOS boot if we boot from UEFI
|
||||
if [ "$(arch)" = "x86_64" ]; then
|
||||
dnf install grub2-pc-modules grub2-pc -y
|
||||
grub2-install --target=i386-pc /dev/vda
|
||||
fi
|
||||
|
||||
# Ensure that the pmbr_boot flag is off
|
||||
parted /dev/vda disk_set pmbr_boot off
|
||||
|
||||
# configure swap to a file
|
||||
fallocate -l 2G /swapfile
|
||||
chmod 600 /swapfile
|
||||
|
Loading…
Reference in New Issue
Block a user