partitioning: Add check to use legacy BIOS boot partition with GPT only, not MBR
Exit with an error message if trying to add this partition to an MBR disk.
This commit is contained in:
parent
01d8716bf9
commit
a027c4be37
@ -189,6 +189,7 @@ function prepare_partitions() {
|
||||
# Legacy BIOS partition
|
||||
if [[ -n "$biospart" ]]; then
|
||||
# gpt: BIOS boot
|
||||
[[ "$IMAGE_PARTITION_TABLE" != "gpt" ]] && exit_with_error "Legacy BIOS partition is not allowed for MBR partition table (${BIOSSIZE} can't be >0)!"
|
||||
local type="21686148-6449-6E6F-744E-656564454649"
|
||||
echo "$biospart : name=\"bios\", start=${next}MiB, size=${BIOSSIZE}MiB, type=${type}"
|
||||
local next=$(($next + $BIOSSIZE))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user