checks/installation-without-system: modify to install through normal user instead of root

This commit is contained in:
Qubasa
2025-03-26 18:35:20 +01:00
parent 0ea9b45838
commit 0afbf9dd45
3 changed files with 50 additions and 8 deletions

View File

@@ -135,6 +135,11 @@ def generate_machine_hardware_info(opts: HardwareGenerateOptions) -> HardwareCon
]
host = machine.target_host
# HACK: to make non-root user work
if host.user != "root":
config_command.insert(0, "sudo")
cmd = nix_shell(
[
"nixpkgs#openssh",