Skip to content

Commit ca94383

Browse files
authored
fix: add _MB in setup-lvs to enforce size limit (#6816)
1 parent ec2f65a commit ca94383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ic-os/components/guestos/init/setup-lvs/setup-lvs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ lvs /dev/store/shared-swap >/dev/null 2>&1 || (
7474
LV_SIZE_MB=$(("$TOTAL_SIZE_MB" / 100))
7575
LV_SIZE_LIMIT_MB=128000
7676
if [ "${LV_SIZE_MB}" -gt "${LV_SIZE_LIMIT_MB}" ]; then
77-
LV_SIZE="${LV_SIZE_LIMIT_MB}"
77+
LV_SIZE_MB="${LV_SIZE_LIMIT_MB}"
7878
fi
7979
retry lvcreate --yes -L "$LV_SIZE_MB"M -n shared-swap store
8080
)

0 commit comments

Comments
 (0)