diff --git a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot index 15e025b..538a9c2 100755 --- a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot +++ b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot @@ -72,7 +72,7 @@ create_swap_file () { fi # Create an empty 128MB /swap file, change its permissions and format it as swap - dd if=/dev/zero of=/swap bs=1M count=128 >/dev/null 2>&1 && + dd if=/dev/zero of=/swap bs=32M count=4 >/dev/null 2>&1 && chmod 0600 /swap >/dev/null 2>&1 && mkswap /swap >/dev/null 2>&1 if [ $? -ne 0 ]; then diff --git a/FunKey/board/funkey/update_partition b/FunKey/board/funkey/update_partition index f4b2852..87c4d08 100755 --- a/FunKey/board/funkey/update_partition +++ b/FunKey/board/funkey/update_partition @@ -33,9 +33,9 @@ do_postinst() notif "4/7 Create swap" # Create an empty 128MB /swap file, change its permissions and format it as swap - dd if=/dev/zero of=${root_mount}/swap bs=1M count=128 >/dev/null 2>&1 && - chmod 0600 ${root_mount}/swap >/dev/null 2>&1 && - mkswap ${root_mount}/swap >/dev/null 2>&1 + dd if=/dev/zero of=${root_mount}/swap bs=32M count=4 && + chmod 0600 ${root_mount}/swap && + mkswap ${root_mount}/swap if [ $? -ne 0 ]; then rm ${root_mount}/swap umount ${root_mount} >/dev/null 2>&1