Verified Commit 0fdc2131 authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

Don't set a root password just to revert it later

parent 840da1e3
......@@ -9,7 +9,6 @@ locale-gen
echo 'LANG=en_US.UTF-8' >/etc/locale.conf
# setting the user credentials
echo -e "${NEWUSER}\n${NEWUSER}" | passwd
useradd -m -U "${NEWUSER}"
echo -e "${NEWUSER}\n${NEWUSER}" | passwd "${NEWUSER}"
......@@ -90,9 +89,6 @@ sed -i 's/^GRUB_CMDLINE_LINUX=.*$/GRUB_CMDLINE_LINUX="net.ifnames=0"/' /etc/defa
sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT=.*/GRUB_CMDLINE_LINUX_DEFAULT=\"rootflags=compress-force=zstd\"/' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
# lock root account
usermod -p "*" root
if declare -f post >/dev/null; then
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment