summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2019-02-15 10:38:19 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2019-03-06 09:54:10 +1300
commitdf1a234c15fbe215b0dd0d75c760f47c2dab411f (patch)
tree5648b00289579c892bfeca926c61bff84227482a
parent5c726bd40a4a745e115a22e336131be8f6666b55 (diff)
downloadtalos-petitboot-df1a234c15fbe215b0dd0d75c760f47c2dab411f.zip
talos-petitboot-df1a234c15fbe215b0dd0d75c760f47c2dab411f.tar.gz
lib/system: Add cryptsetup utility
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
-rw-r--r--configure.ac1
-rw-r--r--lib/system/system.c1
-rw-r--r--lib/system/system.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4151b00..5d541fb 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 89790ba..294c0f7 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 2389951..c0f550f 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;
OpenPOWER on IntegriCloud