Rahul Roshan Kachchap a66f056fa3 Adding udevadm rule for luks filesystems
The luks-fs-mgr service is creating a file based encrypted
container that when unencrypted is mounted as an accessible
filesystem. This mounted filesystem is detected by udev and
considered by sysinv-agent if it should be reported as a
partition-able block device. It sets custom
identifier VAULT_TYPE attribute to "luks_encrypted_vault"
for any LUKS-encrypted device, whose DM_UUID attribute
value matches any characters that come after "CRYPT-LUKS2",
to make sure it is generic to all LUKS filesystem if multiple
are specified in the future.

Test Plan:
PASS: build-pkgs -c -p luks-config
PASS: build-image
PAAS: AIO-DX bootstrap
PASS: rule file created at /etc/udev/rules.d
PASS: udevadm info /dev/dm-* shows new identifier

Story: 2010872
Task: 49237

Change-Id: I747e52441f442648055f02fc7d3e6dc028ff75f6
Signed-off-by: Rahul Roshan Kachchap <rahulroshan.kachchap@windriver.com>
2023-12-12 13:39:00 -05:00
..