Skip swap volumes during mounting
This commit is contained in:
parent
92feeefd26
commit
343d66875b
|
@ -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}"
|
||||
|
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue