feat: reduce amount of questions
This commit is contained in:
parent
ed50d9f04e
commit
a695516ecd
4 changed files with 6 additions and 15 deletions
10
base.sh
10
base.sh
|
|
@ -21,12 +21,8 @@ echo "$hostname" > /etc/hostname
|
|||
|
||||
# Packages
|
||||
case "$(lscpu | grep Vendor)" in
|
||||
*AuthenticAMD*)
|
||||
cpu=amd
|
||||
;;
|
||||
*GenuineIntel*)
|
||||
cpu=intel
|
||||
;;
|
||||
*AuthenticAMD*) cpu=amd ;;
|
||||
*GenuineIntel*) cpu=intel ;;
|
||||
esac
|
||||
|
||||
$PACMAN "${pkg[@]}" "$cpu-ucode"
|
||||
|
|
@ -43,7 +39,7 @@ fi
|
|||
|
||||
# Users
|
||||
echo "root:$root_passwd" | chpasswd
|
||||
useradd -mG wheel "$username"
|
||||
useradd -mG wheel "$username" -s "${default_shell-/bin/bash}"
|
||||
echo "$username:$user_passwd" | chpasswd
|
||||
|
||||
sed -i '/^# %wheel\s\+ALL=(ALL:ALL)\s\+ALL/s/^#\s*//' /etc/sudoers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue