partitioning: allow single root partition for all filesystem type

This commit is contained in:
Jianfeng Liu 2025-10-13 11:33:59 +08:00 committed by Igor
parent d824596c62
commit d890a4b3f3

View File

@ -113,7 +113,7 @@ function prepare_partitions() {
fi
# Check if we need boot partition
# Specialized storage extensions like cryptroot or lvm may require a boot partition
if [[ $BOOTSIZE != "0" && (-n $BOOTFS_TYPE || $ROOTFS_TYPE != ext4 || $BOOTPART_REQUIRED == yes) ]]; then
if [[ $BOOTSIZE != "0" && (-n $BOOTFS_TYPE || $BOOTPART_REQUIRED == yes) ]]; then
local bootpart=$((next++))
local bootfs=${BOOTFS_TYPE:-ext4}
[[ -z $BOOTSIZE || $BOOTSIZE -le 8 ]] && BOOTSIZE=${DEFAULT_BOOTSIZE}