Fix /.new_rootfs/ not being deleted on error (was not empty)

This commit is contained in:
askiiart 2025-05-04 12:28:00 -05:00
parent 48ad492117
commit 825e6c8516
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

View file

@ -530,7 +530,7 @@ except:
# remove update and akshara stuff if the program errors (either exited by the user or an error) and is updating
if command == update_system and not args.keep_files_on_error:
exec('umount', '-rf', '/.new_rootfs/')
exec('rmdir', '/.new_rootfs/')
exec('rm', '-rf', '/.new_rootfs/')
exec('rm', '-rf', '/.update_rootfs')
exec('rm', '-f', '/.update')
else: