bug fixes
This commit is contained in:
parent
354014afad
commit
b45a7f7c1f
|
|
@ -7,7 +7,7 @@
|
|||
# ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║
|
||||
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
echo "-------------------------------------------------"
|
||||
echo "Setting up mirrors for optimal download "
|
||||
echo "-------------------------------------------------"
|
||||
|
|
@ -122,8 +122,18 @@ linux /vmlinuz-linux
|
|||
initrd /initramfs-linux.img
|
||||
options root=LABEL=ROOT rw rootflags=subvol=@
|
||||
EOF
|
||||
cp -R ~/ArchTitus /mnt/root/
|
||||
cp -R ${SCRIPT_DIR} /mnt/root/ArchTitus
|
||||
cp /etc/pacman.d/mirrorlist /mnt/etc/pacman.d/mirrorlist
|
||||
echo "--------------------------------------"
|
||||
echo "-- Check for low memory systems <8G --"
|
||||
echo "--------------------------------------"
|
||||
TOTALMEM=$(cat /proc/meminfo | grep -i 'memtotal' | grep -o '[[:digit:]]*')
|
||||
if [[ $TOTALMEM -lt 8000000 ]]; then
|
||||
dd if=/dev/zero of=/swapfile bs=1M count=2048 status=progress
|
||||
chmod 600 /swapfile
|
||||
mkswap /swapfile
|
||||
swapon /swapfile
|
||||
fi
|
||||
echo "--------------------------------------"
|
||||
echo "-- SYSTEM READY FOR 0-setup --"
|
||||
echo "--------------------------------------"
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ EOF
|
|||
|
||||
# ------------------------------------------------------------------------
|
||||
|
||||
echo -e "\nEnabling the cups service daemon so we can print"
|
||||
echo -e "\nEnabling essential services"
|
||||
|
||||
systemctl enable cups.service
|
||||
sudo ntpd -qg
|
||||
|
|
@ -33,6 +33,7 @@ sudo systemctl enable ntpd.service
|
|||
sudo systemctl disable dhcpcd.service
|
||||
sudo systemctl stop dhcpcd.service
|
||||
sudo systemctl enable NetworkManager.service
|
||||
sudo systemctl enable bluetooth
|
||||
echo "
|
||||
###############################################################################
|
||||
# Cleaning
|
||||
|
|
|
|||
Loading…
Reference in New Issue