integ/filesystem
Rahul Roshan Kachchap 8d466e0521 Resizing Luks Volume
Added functionality to resize the luks volume.
Added functionality to write json config file with
the used attributes to create the Luks volume.
luks volume resizing procedure:
 - umount the filesystem
 - increase the size of vault file
 - check the filesystem for errors
 - resize luks volume
 - check the filesystem for errors
 - resize the filesystem
 - re-mount the filesystem

Depends on: https://review.opendev.org/c/starlingx/integ/+/894535

Test Plan:
PASSED: build-pkgs -c -p luks-fs-mgr
PASSED: build-image
PASSED: AIO-SX bootstrap
PASSED: binary available at /usr/local/sbin/
PASSED: systemd unit file available at /lib/systemd/system
PASSED: luks_config.json avaiable at /etc/luks-fs-mgr.d/
PASSED: resizing luks volume on host restart
PASSED: created_luks.json file generated after successful
        luks volume creation
PASSED: resizing luks volume with size <=256M
PASSED: resizing luks volume with size >256M
PASSED: created_luks.json file adjusted with new size
        of luks volume after resizing activity.

Story: 2010872
Task: 48878

Change-Id: I4285bc8da5bf7d9516ba736fd78a85ebf761f835
Signed-off-by: Rahul Roshan Kachchap <rahulroshan.kachchap@windriver.com>
2023-11-28 04:18:51 -05:00
..
drbd/drbd-tools debian: Create /drbd directory 2022-06-06 06:27:54 +00:00
luks Resizing Luks Volume 2023-11-28 04:18:51 -05:00
parted Fix lint errors identified by Zuul pylint job 2023-03-15 12:07:17 +00:00