systemd/gdm: add tmpfiles config for gdm-greeter home dir

This allows using systemd-tmpfiles to automatically create the home dir,
needed to fix running gdm on duranium.

Signed-off-by: Clayton Craft <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8330>
This commit is contained in:
Clayton Craft 2026-04-11 18:19:26 -07:00 committed by The Friendly Meow (merge) Bot
parent 06489cbd79
commit b466485f09
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View file

@ -5,7 +5,7 @@ maintainer="Newbyte <newbyte@postmarketos.org>"
pkgname=gdm
_pkgver=50.0
pkgver=9999$_pkgver
pkgrel=1
pkgrel=2
pkgdesc="GNOME display manager"
url="https://gitlab.gnome.org/GNOME/gdm"
# blocked by gnome-shell
@ -47,6 +47,7 @@ source="https://download.gnome.org/sources/gdm/${_pkgver%%.*}/gdm-$_pkgver.tar.x
0003-DOWNSTREAM-pam-rename-common-to-base.patch
disable-userdb.patch
gdm.sysusers
gdm.tmpfiles
gnome-login-session.patch
"
install="gdm.pre-install gdm.post-deinstall"
@ -71,10 +72,12 @@ package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
install -Dm644 "$srcdir/gdm.sysusers" "$pkgdir"/usr/lib/sysusers.d/gdm.conf
install -Dm644 "$srcdir/gdm.tmpfiles" "$pkgdir"/usr/lib/tmpfiles.d/gdm.conf
}
systemd() {
amove usr/lib/sysusers.d/gdm.conf
amove usr/lib/tmpfiles.d/gdm.conf
default_systemd
}
@ -83,5 +86,6 @@ e4236564014dd79d9369e56be0933278811ae276e6296b580e4b724b3f7fb2f1209b886230fb5913
66611d49fc4c9578415a7e554834edcb9de99396bd0ca511dcfd4fb256e8a1cd1fd5f10464f4668ffe04799d919bc22ddb58e8bf272017edba69a7951522e63d 0003-DOWNSTREAM-pam-rename-common-to-base.patch
4cbaf87896c6d890b5bdbdf13ee31c81b3cdbcba44cd8a48606268f28202fd775361c9507a503d680c70ba49eff00b896935942daf8615f434b903ae0e76fe20 disable-userdb.patch
cdac8a8d0563f050ed7b8f4d31ea085ae24550bd99ab57ed4f3469723aea2bdcdb92330b625a96e4e366a8c3334d3b7657e0fafe9b914df6f846ea2bd0be22ec gdm.sysusers
b2492cb554aef98265037cf18cf55ee5f0a881bd1120d77a2ebc5b1da6b123bac028a31cc43fdb0a307886bd264073dd7723290b42392dfba9fbe64aadfd9934 gdm.tmpfiles
96bb63304b8b728930166b157d48e01baf90947a85e6802010ee6541c3cdcf5f5df7fdc0e3a51a81985c6a398215b978825188364191c8325f84db1a562605ab gnome-login-session.patch
"

View file

@ -0,0 +1 @@
d /var/lib/gdm-greeter 0755 gdm-greeter gdm -