Ensure swap is skipped during cleanup too

This commit is contained in:
Joshua Boniface 2022-11-16 12:52:24 -05:00
parent 343d66875b
commit 6127387be4
2 changed files with 2 additions and 0 deletions

View File

@ -725,6 +725,7 @@ GRUB_DISABLE_LINUX_UUID=false
if (
volume.get("source_volume") is None
and volume.get("filesystem") is not None
and volume.get("filesystem") != "swap"
):
# Unmount filesystem
retcode, stdout, stderr = pvc_common.run_os_command(

View File

@ -718,6 +718,7 @@ GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=
if (
volume.get("source_volume") is None
and volume.get("filesystem") is not None
and volume.get("filesystem") != "swap"
):
# Unmount filesystem
retcode, stdout, stderr = pvc_common.run_os_command(