Skip to content

Commit

Permalink
IT WORKS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Bezos committed Oct 23, 2024
1 parent 663094e commit de4388e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/install.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ void install_soviet(const std::string& target_drive,
if (setupSystemd() != 0) return;

if (execInChroot("echo 'KEYMAP=" + keymap + "' > /etc/vconsole.conf") != 0) return;
// TODO: Figure out how to set the locale in the root
//if (execInChroot("echo 'LANG="+ locale + "' > /etc/locale.conf && locale-gen") != 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;
// TODO: idk why if this is even needed
//if (execInChroot("gpg --import /lib/systemd/import-pubring.gpg") != 0) return;
if (execInChroot("chattr +C /var/log/journal") != 0) return;

Expand Down

0 comments on commit de4388e

Please sign in to comment.