From 3da18a06d8e0671374f9bf8b841017cfd5d1e5ea Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 25 Sep 2023 15:49:52 +0200 Subject: [PATCH] configure: autoreconf --- configure | 18 ++++++++++++++++++ include/configure.h.in | 3 +++ 2 files changed, 21 insertions(+) diff --git a/configure b/configure index 0bb5b3dbc..ecb808e3f 100755 --- a/configure +++ b/configure @@ -736,6 +736,7 @@ DEFAULT_PROFILE_SUBDIR DEFAULT_PID_DIR DEFAULT_MIRROR_SEGTYPE DEFAULT_LOCK_DIR +DEFAULT_DMEVENTD_EXIT_ON_PATH DEFAULT_DM_RUN_DIR DEFAULT_CACHE_SUBDIR DEFAULT_BACKUP_SUBDIR @@ -1005,6 +1006,7 @@ with_systemdsystemunitdir with_tmpfilesdir with_dmeventd_pidfile with_dmeventd_path +with_dmeventd_exit_on_path with_default_system_dir with_default_profile_subdir with_default_archive_subdir @@ -1813,6 +1815,9 @@ Optional Packages: dmeventd pidfile [PID_DIR/dmeventd.pid] --with-dmeventd-path=PATH dmeventd path [EPREFIX/sbin/dmeventd] + --with-dmeventd-exit-on-path=PATH + Default path to exit-on file in dmeventd + [/run/nologin] --with-default-system-dir=DIR default LVM system directory [/etc/lvm] --with-default-profile-subdir=SUBDIR @@ -15938,6 +15943,15 @@ else $as_nop fi +# Check whether --with-dmeventd-exit-on-path was given. +if test ${with_dmeventd_exit_on_path+y} +then : + withval=$with_dmeventd_exit_on_path; DEFAULT_DMEVENTD_EXIT_ON_PATH=$withval +else $as_nop + DEFAULT_DMEVENTD_EXIT_ON_PATH="/run/nologin" +fi + + if test "$BUILD_DMEVENTD" = "yes" then : @@ -15948,6 +15962,9 @@ printf "%s\n" "#define DMEVENTD_PIDFILE \"$DMEVENTD_PIDFILE\"" >>confdefs.h printf "%s\n" "#define DMEVENTD_PATH \"$DMEVENTD_PATH\"" >>confdefs.h +printf "%s\n" "#define DEFAULT_DMEVENTD_EXIT_ON_PATH \"$DEFAULT_DMEVENTD_EXIT_ON_PATH\"" >>confdefs.h + + fi ################################################################################ @@ -16228,6 +16245,7 @@ AIO_LIBS=${AIO_LIBS:--laio} + ################################################################################ diff --git a/include/configure.h.in b/include/configure.h.in index 1953cba26..b14474d14 100644 --- a/include/configure.h.in +++ b/include/configure.h.in @@ -43,6 +43,9 @@ /* Name of default metadata cache subdirectory. */ #undef DEFAULT_CACHE_SUBDIR +/* Path to exit-on dmeventd file. */ +#undef DEFAULT_DMEVENTD_EXIT_ON_PATH + /* Define default node creation behavior with dmsetup create */ #undef DEFAULT_DM_ADD_NODE