Clean up temp files after they are run

This commit is contained in:
Dylan Taylor 2021-05-20 16:13:16 -04:00
parent 5d6935f9f2
commit 11c9632322
1 changed files with 1 additions and 0 deletions

View File

@ -385,6 +385,7 @@ def perform_installation(mountpoint):
temp_script.write(command)
execution_output = SysCommand(f"arch-chroot /mnt bash /var/tmp/user-command.{index}.sh")
archinstall.log(execution_output)
os.unlink(f"/mnt/var/tmp/user-command.{index}.sh")
installation.log("For post-installation tips, see https://wiki.archlinux.org/index.php/Installation_guide#Post-installation", fg="yellow")
if not archinstall.arguments.get('silent'):