index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-04-29 11:32:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-29 13:32:21 +0200 |
commit | 0ebc6be7ae3b153f2baad722a08a2019bb04c905 (patch) | |
tree | 97ba47b66a74c69e22c8ec70d2081bce28a6111a /archinstall/lib/installer.py | |
parent | aa0f4327260ab39077999859c593ed6d5c12822c (diff) |
-rw-r--r-- | archinstall/lib/installer.py | 3 |
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index dbc6d1b4..a7b36481 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -196,6 +196,9 @@ class Installer(): return sys_command(f'/usr/bin/arch-chroot {self.target} {cmd}') def arch_chroot(self, cmd, *args, **kwargs): + if 'runas' in kwargs: + cmd = f"su - {kwargs['runas']} -c \"{cmd}\"" + return self.run_command(cmd) def drop_to_shell(self): |