Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-boxes
Commits
0fdc2131
Verified
Commit
0fdc2131
authored
Oct 02, 2020
by
Kristian Klausen
🎉
Browse files
Don't set a root password just to revert it later
parent
840da1e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
http/install-common.sh
View file @
0fdc2131
...
...
@@ -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
post
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment