add group
This commit is contained in:
parent
8cfb19e4e0
commit
7884e19edb
|
|
@ -78,11 +78,11 @@ echo -ne "
|
||||||
"
|
"
|
||||||
# determine processor type and install microcode
|
# determine processor type and install microcode
|
||||||
if lscpu | grep -E "GenuineIntel"; then
|
if lscpu | grep -E "GenuineIntel"; then
|
||||||
print "Installing Intel microcode"
|
echo "Installing Intel microcode"
|
||||||
pacman -S --noconfirm intel-ucode
|
pacman -S --noconfirm intel-ucode
|
||||||
proc_ucode=intel-ucode.img
|
proc_ucode=intel-ucode.img
|
||||||
elif lscpu | grep -E "AuthenticAMD"; then
|
elif lscpu | grep -E "AuthenticAMD"; then
|
||||||
print "Installing AMD microcode"
|
echo "Installing AMD microcode"
|
||||||
pacman -S --noconfirm amd-ucode
|
pacman -S --noconfirm amd-ucode
|
||||||
proc_ucode=amd-ucode.img
|
proc_ucode=amd-ucode.img
|
||||||
fi
|
fi
|
||||||
|
|
@ -109,6 +109,7 @@ echo -ne "
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
"
|
"
|
||||||
if [ $(whoami) = "root" ]; then
|
if [ $(whoami) = "root" ]; then
|
||||||
|
groupadd libvirt
|
||||||
useradd -m -G wheel,libvirt -s /bin/bash $username
|
useradd -m -G wheel,libvirt -s /bin/bash $username
|
||||||
# use chpasswd to enter $username:$password
|
# use chpasswd to enter $username:$password
|
||||||
echo "$username:$password" | chpasswd
|
echo "$username:$password" | chpasswd
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue