[gnome-build-meta/tristan/gnome-boot: 4/8] code/gnome-initial-setup.bst: Adding sysusers file to create the user.



commit 5a6a5cf53b170e4bf8321f4d2f9f6e3bfd71f0e1
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date:   Fri May 3 14:41:38 2019 +0900

    code/gnome-initial-setup.bst: Adding sysusers file to create the user.

 elements/core/gnome-initial-setup.bst                       | 10 ++++++++++
 files/gnome-initial-setup/gnome-initial-setup-sysusers.conf |  3 +++
 2 files changed, 13 insertions(+)
---
diff --git a/elements/core/gnome-initial-setup.bst b/elements/core/gnome-initial-setup.bst
index 78318bc8..c393c537 100644
--- a/elements/core/gnome-initial-setup.bst
+++ b/elements/core/gnome-initial-setup.bst
@@ -3,6 +3,9 @@ sources:
 - kind: git_tag
   url: gitlab_gnome_org:GNOME/gnome-initial-setup.git
   track: master
+- kind: local
+  path: files/gnome-initial-setup
+  directory: gnome-initial-setup-config
 depends:
 - core-deps/NetworkManager.bst
 - core-deps/accountsservice.bst
@@ -30,6 +33,13 @@ depends:
 - filename: bootstrap-import.bst
   junction: freedesktop-sdk.bst
 variables:
+  sysusersdir: "%{prefix}/lib/sysusers.d"
   meson-local: >-
     -Dcheese=disabled
     -Dsoftware-sources=disabled
+
+config:
+  install-commands:
+    (>):
+    - mkdir -p %{install-root}%{sysusersdir}
+    - install -m 644 gnome-initial-setup-config/gnome-initial-setup-sysusers.conf 
%{install-root}%{sysusersdir}/gnome-initial-setup.conf
diff --git a/files/gnome-initial-setup/gnome-initial-setup-sysusers.conf 
b/files/gnome-initial-setup/gnome-initial-setup-sysusers.conf
new file mode 100644
index 00000000..d69a0356
--- /dev/null
+++ b/files/gnome-initial-setup/gnome-initial-setup-sysusers.conf
@@ -0,0 +1,3 @@
+# sysusers.d file to ensure the existence of the GNOME Initial Setup user
+#
+u      gnome-initial-setup     -       "GNOME Initial Setup"   /run/gnome-initial-setup


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