summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2024-11-22 17:31:12 +0100
committerKhem Raj <raj.khem@gmail.com>2024-11-22 11:02:13 -0800
commitd4ac4dcb70faeed3e3a933c378bfbcbe25a1f260 (patch)
tree3853867a03feb8a3c102725e75eed08cab54a35f
parentee8951845451f433cdf812777fc8bfead8c80505 (diff)
downloadmeta-openembedded-d4ac4dcb70faeed3e3a933c378bfbcbe25a1f260.tar.gz
gdm: update useradd settings
Set HOME_DIR back to /var/lib/gdm. If this is not specified, gdm will store its files in $HOME/.cache. This is pretty ugly because I think this directory should only be used by real users? Maybe /var/cache would be a better place, because it would be the system equivalent of $HOME/.cache? Use tmpfiles.d to ensure /var/lib/gdm is created with the right permissions even in case /var would be tmpfs Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-gnome/recipes-gnome/gdm/gdm_47.0.bb5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta-gnome/recipes-gnome/gdm/gdm_47.0.bb b/meta-gnome/recipes-gnome/gdm/gdm_47.0.bb
index 45f23b49bb..9aefeed7d2 100644
--- a/meta-gnome/recipes-gnome/gdm/gdm_47.0.bb
+++ b/meta-gnome/recipes-gnome/gdm/gdm_47.0.bb
@@ -42,10 +42,12 @@ do_install:append() {
42 rm -rf ${D}/run ${D}${localstatedir}/run 42 rm -rf ${D}/run ${D}${localstatedir}/run
43 echo "auth optional pam_gnome_keyring.so" >> ${D}${sysconfdir}/pam.d/gdm-password 43 echo "auth optional pam_gnome_keyring.so" >> ${D}${sysconfdir}/pam.d/gdm-password
44 echo "session optional pam_gnome_keyring.so auto_start" >> ${D}${sysconfdir}/pam.d/gdm-password 44 echo "session optional pam_gnome_keyring.so auto_start" >> ${D}${sysconfdir}/pam.d/gdm-password
45 install -d ${D}${sysconfdir}/tmpfiles.d
46 echo "d ${localstatedir}/lib/gdm 700 gdm gdm - -" > ${D}${sysconfdir}/tmpfiles.d/gdm.conf
45} 47}
46 48
47USERADD_PACKAGES = "${PN}" 49USERADD_PACKAGES = "${PN}"
48USERADD_PARAM:${PN} = "--system --no-create-home --groups video gdm" 50USERADD_PARAM:${PN} = "--system --groups video --home ${localstatedir}/lib/gdm gdm"
49 51
50SYSTEMD_SERVICE:${PN} = "${BPN}.service" 52SYSTEMD_SERVICE:${PN} = "${BPN}.service"
51 53
@@ -64,7 +66,6 @@ CONFFILES:${PN} += "${sysconfdir}/gdm/custom.conf"
64FILES:${PN} += " \ 66FILES:${PN} += " \
65 ${datadir}/dconf \ 67 ${datadir}/dconf \
66 ${base_libdir}/security/pam_gdm.so \ 68 ${base_libdir}/security/pam_gdm.so \
67 ${localstatedir} \
68 ${systemd_unitdir} ${systemd_user_unitdir} \ 69 ${systemd_unitdir} ${systemd_user_unitdir} \
69" 70"
70 71