
Add a luks encryption service which will setup as a systemd service that manages the creation and configuration of encrypted volume and runs during the boot process and host unlocking. This commit covers only the debian packaging framework for luks-fs-mgr. The code changes below will enable luks-fs-mgr pkg build and be part of ISO when deployed. 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: AIO-SX sudo systemctl status luks-fs-mgr luks-fs-mgr.service - Create and mount encrypted vault using LUKS Loaded: loaded (/lib/systemd/system/luks-fs-mgr.service; enabled; vendor preset: enabled) Active: inactive (dead) since Tue 2023-08-29 08:18:58 UTC; 2h 16min ago Main PID: 4607 (code=exited, status=0/SUCCESS) CPU: 7.063s Story: 2010872 Task: 48650 Change-Id: I12ca14368eaf466b3148c2de4ce9202a9aa5a19b Signed-off-by: Rahul Roshan Kachchap <rahulroshan.kachchap@windriver.com>
27 lines
678 B
Makefile
27 lines
678 B
Makefile
#!/usr/bin/make -f
|
|
# export DH_VERBOSE = 1
|
|
|
|
export ROOT = debian/tmp
|
|
export LOCAL_SBINDIR = $(ROOT)/usr/local/sbin
|
|
export UNITDIR = $(ROOT)/lib/systemd/system
|
|
export CONFIGDIR = $(ROOT)/etc/luks-fs-mgr.d
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_test:
|
|
echo
|
|
|
|
override_dh_auto_install:
|
|
install -m 755 -d ${LOCAL_SBINDIR}
|
|
install -m 700 -p -D encryption/luks-fs-mgr ${LOCAL_SBINDIR}/luks-fs-mgr
|
|
install -m 755 -d ${UNITDIR}
|
|
install -p -D -m 644 ./debian/luks-fs-mgr.service ${UNITDIR}/luks-fs-mgr.service
|
|
install -p -D -m 644 encryption/scripts/luks_config.json ${CONFIGDIR}/luks_config.json
|
|
|
|
override_dh_installsystemd:
|
|
dh_installsystemd --name luks-fs-mgr
|
|
|
|
override_dh_usrlocal:
|
|
echo
|