From 8bb793f8a5e1a51191aba2f4234f8a559737bb68 Mon Sep 17 00:00:00 2001 From: Yigit Date: Sun, 21 Mar 2021 01:50:23 +0300 Subject: [PATCH] Install script --- arch-setup/chroot.sh | 10 ++++++---- arch-setup/nonAUR.txt | 13 ------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/arch-setup/chroot.sh b/arch-setup/chroot.sh index a06656a4..cf6e4add 100755 --- a/arch-setup/chroot.sh +++ b/arch-setup/chroot.sh @@ -1,10 +1,12 @@ #!/bin/bash -if [ ! -f "/tmp/device" ]; then +if [ ! -f "/install/device" ]; then echo -n "What is the install device: " read device echo "Installing to $device... (Enter to continue)" read _ + mkdir -p /install/device + echo $device /install/device fi ln -sf /usr/share/zoneinfo/Europe/Istanbul /etc/localtime @@ -63,7 +65,10 @@ HELPEOF } EOF +pacman --noconfirm -R vim +pacman -S --needed --noconfirm $(cat /install/nonAUR.txt) line=1 + blkid | while IFS= read -r i; do echo "$line: $i" ((line=line+1)) @@ -82,12 +87,9 @@ echo "Defaults env_reset,pwfeedback" >> /etc/sudoers echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers -pacman --noconfirm -R vim -pacman -S --needed --noconfirm $(cat /install/nonAUR.txt) useradd -m $username usermod -aG wheel yigit - echo "Set password for user $username: " passwd $username diff --git a/arch-setup/nonAUR.txt b/arch-setup/nonAUR.txt index 93fe1763..c57f6905 100644 --- a/arch-setup/nonAUR.txt +++ b/arch-setup/nonAUR.txt @@ -1166,19 +1166,6 @@ tcsh tdb telegram-desktop texinfo -texlive-bibtexextra -texlive-bin -texlive-core -texlive-fontsextra -texlive-formatsextra -texlive-games -texlive-humanities -texlive-latexextra -texlive-music -texlive-pictures -texlive-pstricks -texlive-publishers -texlive-science thin-provisioning-tools thunar thunderbird