From e5f1a7968e85905c189e24624de98a4816388549 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sun, 31 Jan 2021 18:26:22 +0100 Subject: [PATCH] Added services. --- easy-arch.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index b16aeb3..09797ab 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -132,9 +132,10 @@ chmod 600 /mnt/swap/swapfile mkswap /mnt/swap/swapfile swapon /mnt/swap/swapfile echo "/swap/swapfile none swap defaults 0 0" >> /mnt/etc/fstab - +# Configuring the system. arch-chroot /mnt /bin/bash -xe <<"EOF" + # Setting up clock. hwclock --systohc @@ -149,7 +150,17 @@ arch-chroot /mnt /bin/bash -xe <<"EOF" # Creating grub config file. grub-mkconfig -o /boot/grub/grub.cfg - - # Create user - useradd -m user -EOF \ No newline at end of file + +EOF + +# Setting root password. +print "Setting root password." +arch-chroot /mnt /bin/passwd + +# Enabling auto-trimming. +echo "Enabling auto-trimming." +systemctl enable fstrim.timer --root=/mnt + +# Enabling NetworkManager. +echo "Enabling NetworkManager." +systemctl enable NetworkManager --root=/mnt \ No newline at end of file