Re: [PATCH] meson: allow systemd sysusersdir to be changed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/7/24 16:48, Daniel P. Berrangé wrote:
We currently hardcode the systemd sysusersdir, but it is desirable to be
able to choose a different location in some cases. For example, Fedora
flatpak builds change the RPM %_sysusersdir macro, but we can't currently
honour that.

Reported-by: Yaakov Selkowitz <yselkowi@xxxxxxxxxx>
Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
  libvirt.spec.in      | 1 +
  meson.build          | 5 +++++
  meson_options.txt    | 1 +
  src/qemu/meson.build | 2 +-
  4 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 295613fd93..2fc9ab3e96 100644
--- a/meson.build
+++ b/meson.build
@@ -100,6 +100,11 @@ if unitdir == ''
    unitdir = prefix / 'lib' / 'systemd' / 'system'
  endif
+sysusersdir = getoption('sysusersdir')

s/getoption/get_option/

+if sysusersdir == ''
+  sysusersdir = prefix / 'lib' / 'sysusers.d'
+endif
+
  bindir = prefix / get_option('bindir')
  datadir = prefix / get_option('datadir')
  includedir = prefix / get_option('includedir')

--
Yaakov Selkowitz
Principal Software Engineer, Emerging RHEL
Red Hat, Inc.




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux