mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2025-12-06 07:12:01 +01:00
Update the command used to generate a password hash
This commit is contained in:
parent
4b4fb252bc
commit
00a532d4f9
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue