Clean up temp files after they are run
This commit is contained in:
parent
5d6935f9f2
commit
11c9632322
|
|
@ -385,6 +385,7 @@ def perform_installation(mountpoint):
|
||||||
temp_script.write(command)
|
temp_script.write(command)
|
||||||
execution_output = SysCommand(f"arch-chroot /mnt bash /var/tmp/user-command.{index}.sh")
|
execution_output = SysCommand(f"arch-chroot /mnt bash /var/tmp/user-command.{index}.sh")
|
||||||
archinstall.log(execution_output)
|
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")
|
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'):
|
if not archinstall.arguments.get('silent'):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue