mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-08-28 04:46:27 -04:00
Do not set a root password (only allow root via doas)
This commit is contained in:
+3
-7
@@ -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
|
||||
|
||||
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user