Merge "Handling Luks filesystem"

This commit is contained in:
Zuul 2023-12-12 21:32:37 +00:00 committed by Gerrit Code Review
commit 2032f761ce
2 changed files with 6 additions and 0 deletions

View File

@ -2440,3 +2440,6 @@ RUNTIME_CONFIG_STATE_PENDING = "pending"
RUNTIME_CONFIG_STATE_APPLIED = "applied"
RUNTIME_CONFIG_STATE_FAILED = "failed"
RUNTIME_CONFIG_STATE_RETRIED = "retried"
# LUKS vault type
LUKS_VAULT_TYPE_NAME = "luks_encrypted_vault"

View File

@ -588,6 +588,9 @@ def is_system_usable_block_device(pydev_device):
LOG.error("Invalid id_path. Device %s (%s) is iSCSI!" %
(id_path, pydev_device.get('DEVNAME')))
return False
if pydev_device.get("VAULT_TYPE") == constants.LUKS_VAULT_TYPE_NAME:
# Skip devices with the VAULT_TYPE for LUKS encryption
return False
return True