Ensure swap is skipped during cleanup too
This commit is contained in:
parent
343d66875b
commit
6127387be4
|
@ -725,6 +725,7 @@ GRUB_DISABLE_LINUX_UUID=false
|
||||||
if (
|
if (
|
||||||
volume.get("source_volume") is None
|
volume.get("source_volume") is None
|
||||||
and volume.get("filesystem") is not None
|
and volume.get("filesystem") is not None
|
||||||
|
and volume.get("filesystem") != "swap"
|
||||||
):
|
):
|
||||||
# Unmount filesystem
|
# Unmount filesystem
|
||||||
retcode, stdout, stderr = pvc_common.run_os_command(
|
retcode, stdout, stderr = pvc_common.run_os_command(
|
||||||
|
|
|
@ -718,6 +718,7 @@ GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=
|
||||||
if (
|
if (
|
||||||
volume.get("source_volume") is None
|
volume.get("source_volume") is None
|
||||||
and volume.get("filesystem") is not None
|
and volume.get("filesystem") is not None
|
||||||
|
and volume.get("filesystem") != "swap"
|
||||||
):
|
):
|
||||||
# Unmount filesystem
|
# Unmount filesystem
|
||||||
retcode, stdout, stderr = pvc_common.run_os_command(
|
retcode, stdout, stderr = pvc_common.run_os_command(
|
||||||
|
|
Loading…
Reference in New Issue