X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fadd_swap_mount.sh;h=2577f44ae4f653164dbd109d4e3449d6b75c417f;hb=f3c3e1a53718e2eecdcac085e347be831f1caf26;hp=f20c5cb6c0bb2f96d11337f902645cf9f3f429bc;hpb=a566f31d7ae6dc4f99b0e7e035ba4760a4ab719c;p=feisty_meow.git diff --git a/scripts/system/add_swap_mount.sh b/scripts/system/add_swap_mount.sh index f20c5cb6..2577f44a 100644 --- a/scripts/system/add_swap_mount.sh +++ b/scripts/system/add_swap_mount.sh @@ -8,17 +8,17 @@ source "$WORKDIR/../core/launch_feisty_meow.sh" #hmmm: why all the hard-coded paths below? -/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 -check_result "creating swap file" +/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=2048 +test_or_die "creating swap file" /bin/chmod 600 /var/swap.1 -check_result "setting swap file permissions" +test_or_die "setting swap file permissions" /sbin/mkswap /var/swap.1 -check_result "formatting swap file as swap partition" +test_or_die "formatting swap file as swap partition" /sbin/swapon /var/swap.1 -check_result "enabling new swap partition" +test_or_die "enabling new swap partition" free