Use recursive umount to unmount volumes mounted during bootstrap in chroot mode.

This commit is contained in:
Andrius Štikonas 2021-12-23 00:52:30 +00:00
parent 8bacb5138e
commit 3bb72fb0f2
1 changed files with 1 additions and 1 deletions

View File

@ -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"""