mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-20 02:02:58 +01:00
Use recursive umount to unmount volumes mounted during bootstrap in chroot mode.
This commit is contained in:
parent
8bacb5138e
commit
3bb72fb0f2
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ def mount(source, target, fs_type, options='', **kwargs):
|
||||||
|
|
||||||
def umount(target, **kwargs):
|
def umount(target, **kwargs):
|
||||||
"""Unmount filesystem"""
|
"""Unmount filesystem"""
|
||||||
run('sudo', 'umount', target, **kwargs)
|
run('sudo', 'umount', '--recursive', target, **kwargs)
|
||||||
|
|
||||||
def copytree(src, dst, ignore=shutil.ignore_patterns('*.git*')):
|
def copytree(src, dst, ignore=shutil.ignore_patterns('*.git*')):
|
||||||
"""Copy directory tree into another directory"""
|
"""Copy directory tree into another directory"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue