remove /.new_rootfs/ properly

This commit is contained in:
askiiart 2024-11-08 20:06:56 -06:00
parent 2d1b46aa40
commit efa4c78976
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30

View file

@ -498,10 +498,11 @@ try:
command() command()
else: else:
command() command()
except KeyboardInterrupt: except:
error('aborting') error('aborting')
# remove update and akshara stuff if the program is exited # remove update and akshara stuff if the program is exited
exec('rm', '-rf', '/.new_rootfs/') exec('umount', '-rf', '/.new_rootfs/')
exec('rmdir', '/.new_rootfs/')
exec('rm', '-rf', '/.update_rootfs') exec('rm', '-rf', '/.update_rootfs')
# it's basically impossible to ^C before akshara has exited but after it's created this file # it's basically impossible to ^C before akshara has exited but after it's created this file
# and i don't *think* that "update" would be destructive at all (unless it failed to run and would't boot), but i don't quite understand it soooo just to be on the safe side # and i don't *think* that "update" would be destructive at all (unless it failed to run and would't boot), but i don't quite understand it soooo just to be on the safe side