index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Werner Llácer <wllacer@gmail.com> | 2022-01-07 11:29:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 10:29:30 +0000 |
commit | 2190321eb43e4b0667bb41a0dd19f8df3c57a291 (patch) | |
tree | 4eba01f9b7427de31df9664fd48fd5f7a560f0e4 /archinstall/lib/general.py | |
parent | 08d7375e6298084166fc8a0902666956346549c6 (diff) |
-rw-r--r-- | archinstall/lib/general.py | 4 |
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index f69242c6..680e41cd 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -485,10 +485,10 @@ def pid_exists(pid: int) -> bool: def run_custom_user_commands(commands :List[str], installation :Installer) -> None: for index, command in enumerate(commands): log(f'Executing custom command "{command}" ...', level=logging.INFO) - + with open(f"{installation.target}/var/tmp/user-command.{index}.sh", "w") as temp_script: temp_script.write(command) - + execution_output = SysCommand(f"arch-chroot {installation.target} bash /var/tmp/user-command.{index}.sh") log(execution_output) |