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>