From 20136033bd0ecd463fa644cc1bd0774b5e3638a4 Mon Sep 17 00:00:00 2001 From: Yigit Date: Sun, 21 Mar 2021 02:29:31 +0300 Subject: [PATCH] Install script --- arch-setup/chroot.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch-setup/chroot.sh b/arch-setup/chroot.sh index 7dd83d7c..29da5cde 100755 --- a/arch-setup/chroot.sh +++ b/arch-setup/chroot.sh @@ -5,7 +5,7 @@ if [ ! -f "/install/device" ]; then read device echo "Installing to $device... (Enter to continue)" read _ - mkdir -p /install/device + mkdir -p /install echo $device > /install/device fi @@ -27,6 +27,9 @@ echo $hostname > /etc/hostname echo "Please enter name for regular user:" read username +useradd -m $username +usermod -aG wheel yigit + systemctl enable fstrim.timer echo -e "127.0.0.1 localhost\n::1 localhost\n127.0.0.1 $hostname.localdomain $hostname" > /etc/hosts @@ -67,6 +70,7 @@ EOF pacman --noconfirm -R vim pacman -S --needed --noconfirm $(cat /install/nonAUR.txt) + line=1 blkid | while IFS= read -r i; do @@ -86,10 +90,6 @@ echo "$username $hostname =NOPASSWD: /usr/bin/systemctl poweroff,/usr/bin/system echo "Defaults env_reset,pwfeedback" >> /etc/sudoers echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers - -useradd -m $username -usermod -aG wheel yigit - echo "Set password for user $username: " passwd $username