[1/5] lib/system: Add cryptsetup utility
diff mbox series

Message ID 20190215003603.16285-2-sam@mendozajonas.com
State Accepted
Headers show
Series
  • Support for dm-crypt LUKS devices
Related show

Commit Message

Samuel Mendoza-Jonas Feb. 15, 2019, 12:35 a.m. UTC
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
---
 configure.ac        | 1 +
 lib/system/system.c | 1 +
 lib/system/system.h | 1 +
 3 files changed, 3 insertions(+)

Patch
diff mbox series

diff --git a/configure.ac b/configure.ac
index 4151b002..5d541fb4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -426,6 +426,7 @@  DEFINE_HOST_PROG(PB_EXEC, pb-exec, [/usr/sbin/pb-exec])
 DEFINE_HOST_PROG(SH, sh, [/bin/sh])
 DEFINE_HOST_PROG(SCSI_RESCAN, scsi-rescan, [/usr/sbin/scsi-rescan])
 DEFINE_HOST_PROG(DMIDECODE, dmidecode, [/sbin/dmidecode])
+DEFINE_HOST_PROG(CRYPTSETUP, CRYPTSETUP, [/usr/sbin/cryptsetup])
 
 AC_ARG_WITH(
     [tftp],
diff --git a/lib/system/system.c b/lib/system/system.c
index 89790ba4..294c0f7b 100644
--- a/lib/system/system.c
+++ b/lib/system/system.c
@@ -36,6 +36,7 @@  const struct pb_system_apps pb_system_apps = {
 	.sh		= HOST_PROG_SH,
 	.scsi_rescan	= HOST_PROG_SCSI_RESCAN,
 	.dmidecode	= HOST_PROG_DMIDECODE,
+	.cryptsetup	= HOST_PROG_CRYPTSETUP,
 };
 
 #ifndef TFTP_TYPE
diff --git a/lib/system/system.h b/lib/system/system.h
index 2389951f..c0f550f4 100644
--- a/lib/system/system.h
+++ b/lib/system/system.h
@@ -21,6 +21,7 @@  struct pb_system_apps {
 	const char *sh;
 	const char *scsi_rescan;
 	const char *dmidecode;
+	const char *cryptsetup;
 };
 
 extern const struct pb_system_apps pb_system_apps;