From 658c73c1a124cd10853cb1bf5c131869316bd651 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Mon, 14 Oct 2024 18:41:47 +0800 Subject: [PATCH] =?UTF-8?q?arch:=20=E4=BF=AE=E5=A4=8D=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E6=97=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #175 --- trans.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trans.sh b/trans.sh index 7c7b607..d356886 100644 --- a/trans.sh +++ b/trans.sh @@ -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 }