[gnome-build-meta/tristan/gnome-boot: 1/2] core/gdm.bst: Configuring GDM and adding a sysusers file



commit e71d83c4689bd1ecfcc03d34c858121dc40c9f64
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date:   Wed May 1 19:10:42 2019 +0900

    core/gdm.bst: Configuring GDM and adding a sysusers file
    
    The sysusers file is required in order to ensure there is a GDM
    user, otherwise GDM bails out at startup time.

 elements/core/gdm.bst       | 16 +++++++++++++++-
 files/gdm/gdm-sysusers.conf |  3 +++
 2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/elements/core/gdm.bst b/elements/core/gdm.bst
index 1fed9774..bebdf6b8 100644
--- a/elements/core/gdm.bst
+++ b/elements/core/gdm.bst
@@ -3,6 +3,9 @@ sources:
 - kind: git
   url: gitlab_gnome_org:GNOME/gdm.git
   track: master
+- kind: local
+  path: files/gdm
+  directory: gdm-config
 depends:
 - core-deps/accountsservice.bst
 - core-deps/upower.bst
@@ -17,4 +20,15 @@ depends:
 - filename: base-platform.bst
   junction: freedesktop-sdk.bst
 variables:
-  conf-local: --with-plymouth=no
+  sysusersdir: "%{prefix}/lib/sysusers.d"
+  conf-local: |
+    --with-pam-prefix=%{sysconfdir} \
+    --with-default-pam-config=redhat \
+    --with-run-dir=/run/gdm \
+    --with-plymouth=no
+
+config:
+  install-commands:
+    (>):
+    - mkdir -p %{install-root}%{sysusersdir}
+    - install -m 644 gdm-config/gdm-sysusers.conf %{install-root}%{sysusersdir}/gdm.conf
diff --git a/files/gdm/gdm-sysusers.conf b/files/gdm/gdm-sysusers.conf
new file mode 100644
index 00000000..3e27c63d
--- /dev/null
+++ b/files/gdm/gdm-sysusers.conf
@@ -0,0 +1,3 @@
+# sysusers.d file to ensure the existence of the GDM user
+#
+u      gdm     -       "GNOME Display Manager"


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