Moved swapfile to 1-setup.sh
This commit is contained in:
parent
1864568c25
commit
9030a92c37
|
|
@ -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 "--------------------------------------"
|
||||
|
|
|
|||
19
1-setup.sh
19
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue