Skip to content

Commit 2bd1ad0

Browse files
committed
refact: swap handling
1 parent fa6c4cc commit 2bd1ad0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎system/cuos/functions.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ create_swap_and_resize_fs() {
312312
swapoff "$SWAPFILE" 2>/dev/null || true
313313
rm -f "$SWAPFILE"
314314
chattr +C "$SWAP_MOUNTPOINT"
315-
dd if=/dev/zero of="$SWAPFILE" bs=1M count=$((SWAP_SIZE_GB*1024)) status=progress
315+
dd if=/dev/zero of="$SWAPFILE" bs=1M count="$((TARGET_SIZE/1024/1024))" status=progress
316316
chmod 600 "$SWAPFILE"
317317
mkswap "$SWAPFILE"
318318

0 commit comments

Comments
 (0)