From 3bb72fb0f24821ec1d471c7fc9f5915a1350c144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 23 Dec 2021 00:52:30 +0000 Subject: [PATCH] Use recursive umount to unmount volumes mounted during bootstrap in chroot mode. --- lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.py b/lib/utils.py index cada252..b74b9c0 100755 --- 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"""