diff --git a/providers/base/units/disk/encryption.pxu b/providers/base/units/disk/encryption.pxu index ed48358902..89d22a6c9e 100644 --- a/providers/base/units/disk/encryption.pxu +++ b/providers/base/units/disk/encryption.pxu @@ -3,10 +3,12 @@ category_id: com.canonical.plainbox::disk plugin: shell template-engine: jinja2 user: root +imports: from com.canonical.plainbox import manifest requires: executable.name == 'lsblk' executable.name == 'dmsetup' executable.name == 'cryptsetup' + manifest.has_fde == 'True' _summary: Test that Full Disk Encryption is in use _purpose: Examine the system to detect if one of the standard full disk encryption @@ -45,3 +47,5 @@ _verification: category_id: com.canonical.plainbox::disk estimated_duration: 45m plugin: manual +imports: from com.canonical.plainbox import manifest +requires: manifest.has_fde == 'True' diff --git a/providers/base/units/disk/manifest.pxu b/providers/base/units/disk/manifest.pxu index 03f1629cb3..7b4cb77d6e 100644 --- a/providers/base/units/disk/manifest.pxu +++ b/providers/base/units/disk/manifest.pxu @@ -2,3 +2,8 @@ unit: manifest entry id: has_md_raid _name: Software RAID value-type: bool + +unit: manifest entry +id: has_fde +_name: Full Disk Encryption (FDE) +value-type: bool