From 7a07b18156e24f61ad12d8fd74c6c8dd65519d02 Mon Sep 17 00:00:00 2001
From: hygienic-books <hygienic-books@tentic.net>
Date: Fri, 20 Oct 2023 19:01:59 +0200
Subject: [PATCH] fix(os): Write root password with specific --crypt-method
 (#3)

---
 setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.sh b/setup.sh
index bcb0c3b..5f8e9fb 100644
--- a/setup.sh
+++ b/setup.sh
@@ -641,7 +641,7 @@ function install_os_in_chroot () {
 
 function set_root_pw () {
     #3.2
-    printf -- '%s\n' 'root:password' | chpasswd --root '/mnt'
+    printf -- '%s\n' 'root:password' | chpasswd --crypt-method 'SHA512' --root '/mnt'
 }
 
 function configure_networking () {