mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-02 15:07: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]}
|
disk=${args[4]}
|
||||||
username=${args[5]}
|
username=${args[5]}
|
||||||
userpassword=${args[6]}
|
userpassword=${args[6]}
|
||||||
rootpassword=${args[7]}
|
timezone=${args[7]}
|
||||||
timezone=${args[8]}
|
swap=${args[8]}
|
||||||
swap=${args[9]}
|
intel_vaapi_driver=${args[9]}
|
||||||
intel_vaapi_driver=${args[10]}
|
|
||||||
|
|
||||||
# configuring locale and clock Settings
|
# configuring locale and clock Settings
|
||||||
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
|
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
|
||||||
@@ -46,9 +45,6 @@ grub-mkconfig -o /boot/grub/grub.cfg
|
|||||||
|
|
||||||
# account setup
|
# account setup
|
||||||
groupadd classmod
|
groupadd classmod
|
||||||
echo "$rootpassword
|
|
||||||
$rootpassword
|
|
||||||
" | passwd
|
|
||||||
useradd -m -g users -G classmod "$username"
|
useradd -m -g users -G classmod "$username"
|
||||||
echo "$userpassword
|
echo "$userpassword
|
||||||
$userpassword
|
$userpassword
|
||||||
|
|||||||
+2
-4
@@ -3,7 +3,7 @@
|
|||||||
loadkeys us
|
loadkeys us
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
echo rwinkhart\'s artix install script
|
echo rwinkhart\'s artix install script
|
||||||
echo last updated october 04, 2023 \(rev. C\)
|
echo last updated october 04, 2023 \(rev. D\)
|
||||||
echo ----------------------------------------------------------------------------------------------
|
echo ----------------------------------------------------------------------------------------------
|
||||||
echo You will be asked some questions before installation.
|
echo You will be asked some questions before installation.
|
||||||
echo -e "----------------------------------------------------------------------------------------------\n"
|
echo -e "----------------------------------------------------------------------------------------------\n"
|
||||||
@@ -24,8 +24,6 @@ read -rp "username: " username
|
|||||||
|
|
||||||
read -rp "$username password: " userpassword
|
read -rp "$username password: " userpassword
|
||||||
|
|
||||||
read -rp "root password: " rootpassword
|
|
||||||
|
|
||||||
read -rp "hostname: " hostname
|
read -rp "hostname: " hostname
|
||||||
|
|
||||||
echo -e '\namerica:'&&ls /usr/share/zoneinfo/America
|
echo -e '\namerica:'&&ls /usr/share/zoneinfo/America
|
||||||
@@ -175,7 +173,7 @@ for int in "${interfaces[@]}"; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# create array of variables to pass to part 2
|
# 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
|
# download and initiate part 2
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/chrootInstall.sh -o /mnt/chrootInstall.sh
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/chrootInstall.sh -o /mnt/chrootInstall.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user