From efa4c78976d842548401bd620c1b4830805d675f Mon Sep 17 00:00:00 2001 From: askiiart Date: Fri, 8 Nov 2024 20:06:56 -0600 Subject: [PATCH] remove /.new_rootfs/ properly --- akshara | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/akshara b/akshara index b7484b6..3f69416 100755 --- a/akshara +++ b/akshara @@ -498,10 +498,11 @@ try: command() else: command() -except KeyboardInterrupt: +except: error('aborting') # 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') # 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