From 9d5c9c281aaef6899bfb8a9a6c9f3bc3a3ce6030 Mon Sep 17 00:00:00 2001 From: simono41 Date: Sun, 22 Jul 2018 16:21:32 +0200 Subject: [PATCH] swapfilespeicher --- arch-install | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch-install b/arch-install index 2dcc621..aebb2b6 100755 --- a/arch-install +++ b/arch-install @@ -254,7 +254,7 @@ function cron() { function makeswapfile() { #swapfile - fallocate -l 4G ${mountpoint}/swapfile + fallocate -l ${swapfilespeicher} ${mountpoint}/swapfile chmod 600 ${mountpoint}/swapfile mkswap ${mountpoint}/swapfile echo "/swapfile none swap defaults 0 0" >> ${mountpoint}/etc/fstab @@ -895,6 +895,9 @@ function abfrage() { read -p "Do you want to create a swap partition? : [Y/n] " swap read -p "Do you want to create a swapfile? : [y/N] " swapfile + if [ "${swapfile}" == "y" ]; then + read -p "Do you want create your swapfile with : [2G/4G/8G/16G] " swapfilespeicher + fi # if [ "${update}" != "n" ]; then # @@ -995,9 +998,9 @@ function abfrage() { #if [ "${swap}" != "n" ]; then # echo "Swap-partition ${swapspeicher}" #fi - #if [ "${swapfile}" == "y" ]; then - # echo "Swapfile ${swapfilespeicher}" - #fi + if [ "${swapfile}" == "y" ]; then + echo "Swapfile ${swapfilespeicher}" + fi #echo "Rootpasswort: ${pass}" echo "Architektur: $(uname -m)" echo "Installation: ${install}"