Skip swap volumes during mounting

This commit is contained in:
Joshua Boniface 2022-11-16 12:42:28 -05:00
parent 92feeefd26
commit 343d66875b
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ class VMBuilderScript(VMBuilder):
if volume.get("source_volume") is not None:
continue
if volume.get("filesystem") is None:
if volume.get("filesystem") is None or volume.get("filesystem") == "swap":
continue
mapped_dst_volume = f"/dev/rbd/{dst_volume}"

View File

@ -398,7 +398,7 @@ class VMBuilderScript(VMBuilder):
if volume.get("source_volume") is not None:
continue
if volume.get("filesystem") is None:
if volume.get("filesystem") is None or volume.get("filesystem") == "swap":
continue
mapped_dst_volume = f"/dev/rbd/{dst_volume}"