lib/system: Add cryptsetup utility
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 14 Feb 2019 23:38:19 +0000 (10:38 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 5 Mar 2019 20:54:10 +0000 (09:54 +1300)
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
configure.ac
lib/system/system.c
lib/system/system.h

index 4151b002a35b8a2835dcf0b1ff572abd39821498..5d541fb4260909168d8c30c4087610857e3958e7 100644 (file)
@@ -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],
index 89790ba47932b3e94ee96a814eaf4adb2fa19212..294c0f7b2e32621d9f422e07ef77bbb0af93327f 100644 (file)
@@ -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
index 2389951f7b8ee7c98723df41f7283c603c306782..c0f550f41cbceced6e9dcdde7b860845f8fecd41 100644 (file)
@@ -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;