diff options
author | David Teigland <teigland@redhat.com> | 2020-05-20 10:59:38 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-10-07 12:06:49 -0500 |
commit | 3e1316bb09b087ec79c9661ead14d8556c36fa8d (patch) | |
tree | dc04e98f896348aa5595332fdb0f377904e7ecf0 /configure.ac | |
parent | 6c22392a3f903d6c086f7cc94978bdf8b072da6e (diff) | |
download | lvm2-3e1316bb09b087ec79c9661ead14d8556c36fa8d.tar.gz |
system_id: new appmachineid option
The new system_id_source="appmachineid" will cause
lvm to use an lvm-specific derivation of the machine-id,
instead of the machine-id directly. This is now
recommended in place of using machineid.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 6b1ea9854..31196d96c 100644 --- a/configure.ac +++ b/configure.ac @@ -1106,6 +1106,26 @@ if test "$NOTIFYDBUS_SUPPORT" = yes; then fi ################################################################################ +dnl -- Build appmachineid +AC_MSG_CHECKING(whether to build appmachineid) +AC_ARG_ENABLE(app-machineid, + AC_HELP_STRING([--enable-app-machineid], + [enable LVM system ID using app-specific machine-id]), + APP_MACHINEID_SUPPORT=$enableval, APP_MACHINEID_SUPPORT=no) +AC_MSG_RESULT($APP_MACHINEID_SUPPORT) + +if test "$APP_MACHINEID_SUPPORT" = yes; then + AC_DEFINE([APP_MACHINEID_SUPPORT], 1, [Define to 1 to include code that uses libsystemd machine-id apis.]) + SYSTEMD_LIBS="-lsystemd" +fi + +################################################################################ +dnl -- Look for libsystemd libraries +if test "$APP_MACHINEID_SUPPORT" = yes; then + PKG_CHECK_MODULES(APP_MACHINEID, systemd >= 234, [HAVE_APP_MACHINEID=yes], $bailout) +fi + +################################################################################ dnl -- Enable blkid wiping functionality AC_ARG_ENABLE(blkid_wiping, |