Skip to content

Commit

Permalink
Automatically add biosboot partition on >2TB drives with RHEL 7/8 (#7400
Browse files Browse the repository at this point in the history
)

Co-authored-by: Andrey Kiryanov <[email protected]>
  • Loading branch information
kiryanov and Andrey Kiryanov committed Jun 24, 2024
1 parent 1e22382 commit 8432960
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xCAT-server/share/xcat/install/scripts/pre.rh.rhels7
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions xCAT-server/share/xcat/install/scripts/pre.rhels8
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8432960

Please sign in to comment.