arch: 修复设置密码时报错

fixes #175
This commit is contained in:
bin456789 2024-10-14 18:41:47 +08:00
parent e86624fb41
commit 658c73c1a1
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -2686,7 +2686,7 @@ change_root_password() {
mv $pam_d/chpasswd.orig $pam_d/chpasswd
fi
else
get_password_linux_sha512 | chroot $os_dir chpasswd -e
echo "root:$(get_password_linux_sha512)" | chroot $os_dir chpasswd -e
fi
}