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



commit 05466183a602cc7ed745b881b851a3b4c87070fb
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 e3b613eb..8b08326c 100644
--- a/elements/core/gdm.bst
+++ b/elements/core/gdm.bst
@@ -3,6 +3,9 @@ sources:
 - kind: git_tag
   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,5 +20,16 @@ depends:
 - filename: bootstrap-import.bst
   junction: freedesktop-sdk.bst
 variables:
-  conf-local: >-
+  sysusersdir: "%{prefix}/lib/sysusers.d"
+  conf-local: |
+    --enable-wayland-support \
+    --with-pam-prefix=%{sysconfdir} \
+    --with-default-pam-config=lfs \
+    --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..80256f90
--- /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" /var/lib/gdm


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