diff --git a/scripts/ubinize-image.sh b/scripts/ubinize-image.sh index 06a63109801..d8b8cd3ae2c 100755 --- a/scripts/ubinize-image.sh +++ b/scripts/ubinize-image.sh @@ -90,10 +90,10 @@ ubilayout() { rootsize="$( round_up "$( stat -c%s "$2" )" 1024 )" ;; esac - ubivol $vol_id rootfs "$2" "$autoresize" "$rootsize" dynamic + ubivol $vol_id rootfs "$2" "$autoresize" "$rootsize" vol_id=$(( vol_id + 1 )) - [ "$rootfs_type" = "ubifs" ] || ubivol $vol_id rootfs_data "" 1 dymamic + [ "$rootfs_type" = "ubifs" ] || ubivol $vol_id rootfs_data "" 1 fi }