[gnome-initial-setup/wip/davidk/sysusers] Add sysusers.d configuration snippet
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/wip/davidk/sysusers] Add sysusers.d configuration snippet
- Date: Wed, 13 Jul 2022 08:20:06 +0000 (UTC)
commit 7fad1f2b086f77b56ee25a20702c58bd125b03b1
Author: David King <amigadave amigadave com>
Date: Wed Jul 13 09:13:08 2022 +0100
Add sysusers.d configuration snippet
Install a sysusers.d snippet if systemd support is enabled.
data/gnome-initial-setup.conf | 3 +++
data/meson.build | 2 ++
meson.build | 2 ++
3 files changed, 7 insertions(+)
---
diff --git a/data/gnome-initial-setup.conf b/data/gnome-initial-setup.conf
new file mode 100644
index 00000000..452b2ad2
--- /dev/null
+++ b/data/gnome-initial-setup.conf
@@ -0,0 +1,3 @@
+# sysusers.d snippet for creating the gnome-inital-setup system user. See
+# sysusers.d(5) for details.
+u gnome-initial-setup - "GNOME Initial Setup" /run/gnome-initial-setup
diff --git a/data/meson.build b/data/meson.build
index 31fa2f93..ba8d78e2 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -97,6 +97,8 @@ if enable_systemd
install_dir: systemd_userunitdir / 'gnome-session@@0@.target.d'.format(
meson.project_name()),
)
+
+ install_data('gnome-initial-setup.conf', install_dir: systemd_sysusersdir)
endif
diff --git a/meson.build b/meson.build
index 56dce681..8a3718f5 100644
--- a/meson.build
+++ b/meson.build
@@ -38,6 +38,8 @@ if enable_systemd
systemd_userunitdir = systemd_dep.get_variable(pkgconfig: 'systemduserunitdir',
pkgconfig_define: ['prefix', prefix])
+ systemd_sysusersdir = systemd_dep.get_variable(pkgconfig: 'sysusersdir',
+ pkgconfig_define: ['prefix', prefix])
endif
vendor_conf_file = get_option('vendor-conf-file')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]