Ensure swap is skipped during cleanup too
This commit is contained in:
		@@ -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(
 | 
			
		||||
 
 | 
			
		||||
@@ -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(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user