commit: 3bb72fb0f24821ec1d471c7fc9f5915a1350c144
parent 8bacb5138e01c1349d18e5f08d12253da8c22b2e
Author: Andrius Štikonas <andrius@stikonas.eu>
Date: Thu, 23 Dec 2021 00:52:30 +0000
Use recursive umount to unmount volumes mounted during bootstrap in chroot mode.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/utils.py b/lib/utils.py
@@ -44,7 +44,7 @@ def mount(source, target, fs_type, options='', **kwargs):
def umount(target, **kwargs):
"""Unmount filesystem"""
- run('sudo', 'umount', target, **kwargs)
+ run('sudo', 'umount', '--recursive', target, **kwargs)
def copytree(src, dst, ignore=shutil.ignore_patterns('*.git*')):
"""Copy directory tree into another directory"""