yield
finally:
with complete_step('Unmounting image'):
-
- for d in ("home", "srv", "efi", "run", "tmp"):
- umount(os.path.join(root, d))
-
umount(root)
@complete_step("Assigning hostname")
def umount(where):
# Ignore failures and error messages
- run(["umount", "-n", where], stdout=DEVNULL, stderr=DEVNULL)
+ run(["umount", "--recursive", "-n", where], stdout=DEVNULL, stderr=DEVNULL)
@complete_step('Setting up basic OS tree')
def prepare_tree(args, workspace, run_build_script, cached):