Update overlay unmount code
This commit is contained in:
parent
d016275a71
commit
6ef4c3e197
1 changed files with 6 additions and 6 deletions
12
akshara
12
akshara
|
@ -213,12 +213,12 @@ def install_system_package():
|
|||
exit(1)
|
||||
|
||||
exec('mkdir', '-p', '/.blendrw')
|
||||
if exec('findmnt', '/.blendrw/usr') != 0:
|
||||
exec('umount', '-l', '/.blendrw/usr', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
if exec('findmnt', '/.blendrw/var/lib/pacman') != 0:
|
||||
exec('umount', '-l', '/.blendrw/var/lib/pacman', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
if exec('findmnt', '/.blendrw') != 0:
|
||||
exec('umount', '-l', '/.blendrw', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
while exec('umount', '-l', '/.blendrw/usr', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) != 0:
|
||||
pass
|
||||
while exec('umount', '-l', '/.blendrw/var/lib/pacman', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) != 0:
|
||||
pass
|
||||
while exec('umount', '-l', '/.blendrw', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) != 0:
|
||||
pass
|
||||
for old_overlay in os.listdir('/mnt'):
|
||||
if old_overlay.startswith('.blend-tmp-overlay-'):
|
||||
exec('rm', '-rf', f'/mnt/{old_overlay}')
|
||||
|
|
Loading…
Reference in a new issue