2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 19:22:05 +00:00

Automatically add biosboot partition on >2TB drives with RHEL 7/8 (#7400)

Co-authored-by: Andrey Kiryanov <kiryanov_ak@pnpi.nrcki.ru>
This commit is contained in:
Andrey Kiryanov 2024-06-25 00:37:02 +03:00 committed by GitHub
parent 1e22382125
commit 8432960e02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -245,6 +245,9 @@ echo "ignoredisk --only-use=$instdisk" >> /tmp/partitionfile
if [ `uname -m` = "ppc64" -o `uname -m` = "ppc64le" ]; then
echo 'part None --fstype "PPC PReP Boot" --ondisk '$instdisk' --size 8' >> /tmp/partitionfile
fi
if [ `blockdev --getsz $instdisk` -gt 4294967295 ]; then
echo 'part biosboot --size 1 --ondisk '$instdisk >> /tmp/partitionfile
fi
if [ -d /sys/firmware/efi ]; then
echo 'part /boot/efi --size 50 --ondisk '$instdisk' --fstype '$EFIFSTYPE >> /tmp/partitionfile
fi

View File

@ -264,6 +264,9 @@ case "$(uname -m)" in
echo "part prepboot --fstype=prepboot --asprimary --ondisk=$instdisk --size=8" >>/tmp/partitionfile
;;
esac
if [ `blockdev --getsz $instdisk` -gt 4294967295 ]; then
echo "part biosboot --ondisk=$instdisk --size=1" >> /tmp/partitionfile
fi
if [ -d /sys/firmware/efi ]
then
echo "part /boot/efi --fstype=$EFIFSTYPE --ondisk=$instdisk --size=256" >>/tmp/partitionfile