partitioning: allow to disable boot partition if bootloader known to support rootfs

This commit is contained in:
Alex Shumsky
2024-01-13 23:03:59 +03:00
committed by Igor
parent 86a743ad83
commit eee0d33bbc

View File

@@ -98,7 +98,7 @@ function prepare_partitions() {
local uefipart=$((next++))
fi
# Check if we need boot partition
if [[ -n $BOOTFS_TYPE || $ROOTFS_TYPE != ext4 || $CRYPTROOT_ENABLE == yes ]]; then
if [[ $BOOTSIZE != "0" && ( -n $BOOTFS_TYPE || $ROOTFS_TYPE != ext4 || $CRYPTROOT_ENABLE == yes ) ]]; then
local bootpart=$((next++))
local bootfs=${BOOTFS_TYPE:-ext4}
[[ -z $BOOTSIZE || $BOOTSIZE -le 8 ]] && BOOTSIZE=${DEFAULT_BOOTSIZE}