diff --git a/VMEncryption/main/handle.py b/VMEncryption/main/handle.py index 712e4be90..1ffa33256 100644 --- a/VMEncryption/main/handle.py +++ b/VMEncryption/main/handle.py @@ -751,7 +751,11 @@ def enable(): encryption_config = EncryptionConfig(encryption_environment=encryption_environment, logger=logger) if encryption_config.config_file_exists(): existing_volume_type = encryption_config.get_volume_type() - + #log to capture lsblk before encryption view. + disk_util.log_lsblk_output() + if public_settings.get(CommonVariables.EncryptionEncryptionOperationKey) == CommonVariables.EnableEncryptionFormatAll: + #in case of stop start unmount /mnt to avoid resource disk encryption issues. + disk_util.umount('/mnt') is_migrate_operation = False if CommonVariables.MigrateKey in public_settings: if public_settings.get(CommonVariables.MigrateKey) == CommonVariables.MigrateValue: