From 8192da87fd5e84304df79a41812a95c9df3f030f Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Wed, 4 Oct 2023 21:10:00 -0400 Subject: [PATCH] Do not set a root password (only allow root via doas) --- chrootInstall.sh | 10 +++------- install.sh | 6 ++---- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/chrootInstall.sh b/chrootInstall.sh index 9deb401..716fce1 100755 --- a/chrootInstall.sh +++ b/chrootInstall.sh @@ -9,10 +9,9 @@ boot=${args[3]} disk=${args[4]} username=${args[5]} userpassword=${args[6]} -rootpassword=${args[7]} -timezone=${args[8]} -swap=${args[9]} -intel_vaapi_driver=${args[10]} +timezone=${args[7]} +swap=${args[8]} +intel_vaapi_driver=${args[9]} # configuring locale and clock Settings echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen @@ -46,9 +45,6 @@ grub-mkconfig -o /boot/grub/grub.cfg # account setup groupadd classmod -echo "$rootpassword -$rootpassword -" | passwd useradd -m -g users -G classmod "$username" echo "$userpassword $userpassword diff --git a/install.sh b/install.sh index b2d9ae7..a96279b 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ loadkeys us echo ---------------------------------------------------------------------------------------------- echo rwinkhart\'s artix install script -echo last updated october 04, 2023 \(rev. C\) +echo last updated october 04, 2023 \(rev. D\) echo ---------------------------------------------------------------------------------------------- echo You will be asked some questions before installation. echo -e "----------------------------------------------------------------------------------------------\n" @@ -24,8 +24,6 @@ read -rp "username: " username read -rp "$username password: " userpassword -read -rp "root password: " rootpassword - read -rp "hostname: " hostname echo -e '\namerica:'&&ls /usr/share/zoneinfo/America @@ -175,7 +173,7 @@ for int in "${interfaces[@]}"; do done # create array of variables to pass to part 2 -var_export=($formfactor $threadsminusone $gpu $boot $disk0 $username $userpassword $rootpassword $timezone $swap $intel_vaapi_driver) +var_export=($formfactor $threadsminusone $gpu $boot $disk0 $username $userpassword $timezone $swap $intel_vaapi_driver) # download and initiate part 2 curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/chrootInstall.sh -o /mnt/chrootInstall.sh