Browse Source

Install script

main
Yigit 4 years ago
parent
commit
20136033bd
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      arch-setup/chroot.sh

+ 5
- 5
arch-setup/chroot.sh View File

@ -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


Loading…
Cancel
Save