Update the command used to generate a password hash

This commit is contained in:
fdupoux 2021-08-28 10:20:56 +01:00
parent 4b4fb252bc
commit 00a532d4f9

View file

@ -32,7 +32,7 @@ do
# Set the system root password from an encrypted password
# A password can be encrypted using a one-line python3 command such as:
# python3 -c 'import crypt; print(crypt.crypt("MyPassWord123", crypt.mksalt(crypt.METHOD_SHA256)))'
# python3 -c 'import crypt; print(crypt.crypt("MyPassWord123", crypt.mksalt(crypt.METHOD_SHA512)))'
rootcryptpass=*)
echo "Found option 'rootcryptpass=******' on the boot command line"
if echo "root:${curopt#*=}" | chpasswd --encrypted