Skip to content

Commit

Permalink
partitioning: allow to disable boot partition if bootloader known to …
Browse files Browse the repository at this point in the history
…support rootfs
  • Loading branch information
alex3d committed Jan 13, 2024
1 parent 4e0885f commit 35a86a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/image/partitioning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 35a86a4

Please sign in to comment.