diff --git a/0-preinstall.sh b/0-preinstall.sh index e40fd79..0e8cf61 100755 --- a/0-preinstall.sh +++ b/0-preinstall.sh @@ -108,25 +108,6 @@ EOF cp -R ~/ArchTitus /mnt/root/ cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist -# -# create a swapfile -# $ required for completion of scripts on lower end systems (under 8GB ram will need swap) -# - -SWAPSIZEgb=2 - -SWAPSIZEmb=1024*$SWAPSIZEgb - -touch /swapfile -dd if=/dev/zero of=/swapfile bs=1M count=$SWAPSIZEmb status=progress -# status=progress is for debugging -chmod 600 /swapfile -mkswap /swapfile -swapon /swapfile -"\n# /swapfile \n/swapfile none swap defaults 0 0" >> /etc/fstab - -echo "Swap /swapfile created and configured wtih $SWAPSIZEgb GB\n" - echo "--------------------------------------" echo "-- SYSTEM READY FOR 0-setup --" echo "--------------------------------------" diff --git a/1-setup.sh b/1-setup.sh index 88e866d..aa53d7e 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -264,6 +264,25 @@ elif lspci | grep -E "Integrated Graphics Controller"; then pacman -S libva-intel-driver libvdpau-va-gl lib32-vulkan-intel vulkan-intel libva-intel-driver libva-utils --needed --noconfirm fi +# +# create a swapfile +# $ required for completion of scripts on lower end systems (under 8GB ram will need swap) +# + +SWAPSIZEgb=2 + +SWAPSIZEmb=1024*$SWAPSIZEgb + +touch /swapfile +dd if=/dev/zero of=/swapfile bs=1M count=$SWAPSIZEmb status=progress +# status=progress is for debugging +chmod 600 /swapfile +mkswap /swapfile +swapon /swapfile +echo -e "\n# /swapfile \n/swapfile none swap defaults 0 0" >> /etc/fstab + +echo -e "Swap /swapfile created and configured wtih $SWAPSIZEgb GB\n" + echo -e "\nDone!\n" if ! source install.conf; then read -p "Please enter username:" username