From 38633f4546a7037a9b5e04718502b9ea90e8fc0f Mon Sep 17 00:00:00 2001 From: Jeff Bezos Date: Wed, 23 Oct 2024 14:10:39 +0000 Subject: [PATCH] fixed root pass settings --- src/install.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install.cpp b/src/install.cpp index 92dfadc..368e148 100644 --- a/src/install.cpp +++ b/src/install.cpp @@ -144,7 +144,7 @@ void install_soviet(const std::string& target_drive, if (execInChroot("echo 'KEYMAP=" + keymap + "' > /etc/vconsole.conf") != 0) return; //if (execInChroot("echo 'LANG="+ locale + "' > /etc/locale.conf && locale-gen") != 0) return; - if (setRootPassword(rootPassword) != 0) return; + if (system(("echo 'root:" + rootPassword + "' | chpasswd -P /mnt").c_str()) != 0) return; if (execInChroot("echo "+ hostname +" > /etc/hostname") != 0) return; if (execInChroot("systemd-machine-id-setup") != 0) return; if (execInChroot("gpg --import /lib/systemd/import-pubring.gpg") != 0) return;