osbuild: add warning when lazy umount in containers_storage_source fails
This commit is contained in:
parent
b5355c46ac
commit
c219160b8f
1 changed files with 3 additions and 1 deletions
|
|
@ -132,7 +132,9 @@ def containers_storage_source(image, image_filepath, container_format):
|
|||
if driver == "overlay":
|
||||
# NOTE: the overlay sub-directory isn't always released,
|
||||
# so we need to force unmount it
|
||||
subprocess.run(["umount", "-f", "--lazy", os.path.join(storage_path, "overlay")], check=False)
|
||||
ret = subprocess.run(["umount", "-f", "--lazy", os.path.join(storage_path, "overlay")], check=False)
|
||||
if ret.returncode != 0:
|
||||
print(f"WARNING: umount of overlay dir failed with an error: {ret}")
|
||||
|
||||
|
||||
@contextmanager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue