From 921f56da08c2e47357154b139d9225505bdcd7ba Mon Sep 17 00:00:00 2001 From: Leonhard Kargl Date: Fri, 9 Oct 2026 23:29:55 +0200 Subject: [PATCH 1/2] tmpfiles.d/login.conf: Fix /var/lib/lightdm ownership /var/lib/lightdm has to be owned by lightdm and not by root otherwise we get a bunch of problems when running (the directory is used for conf and cache etc. by apps running in the greeter) The manual creation of /var/lib/lightdm/data is unnecessary so replace it by a fix that makes sure /var/lib/lightdm is actually owned by lightdm. --- mkosi.images/base/mkosi.extra/usr/lib/tmpfiles.d/login.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkosi.images/base/mkosi.extra/usr/lib/tmpfiles.d/login.conf b/mkosi.images/base/mkosi.extra/usr/lib/tmpfiles.d/login.conf index 3f803995a..53738d8cb 100644 --- a/mkosi.images/base/mkosi.extra/usr/lib/tmpfiles.d/login.conf +++ b/mkosi.images/base/mkosi.extra/usr/lib/tmpfiles.d/login.conf @@ -1 +1,2 @@ -d /var/lib/lightdm/data 0755 root root - +# TODO: This feels like a workaround. Find who creates that folder with root ownership and fix it properly. +d /var/lib/lightdm 0755 lightdm lightdm - From 8b07209e43d98d93e3bde837345a25da8dacc2c5 Mon Sep 17 00:00:00 2001 From: Leonhard Kargl Date: Sat, 10 Oct 2026 00:47:44 +0200 Subject: [PATCH 2/2] Remove comment --- mkosi.images/base/mkosi.extra/usr/lib/tmpfiles.d/login.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/mkosi.images/base/mkosi.extra/usr/lib/tmpfiles.d/login.conf b/mkosi.images/base/mkosi.extra/usr/lib/tmpfiles.d/login.conf index 53738d8cb..a2bed9561 100644 --- a/mkosi.images/base/mkosi.extra/usr/lib/tmpfiles.d/login.conf +++ b/mkosi.images/base/mkosi.extra/usr/lib/tmpfiles.d/login.conf @@ -1,2 +1 @@ -# TODO: This feels like a workaround. Find who creates that folder with root ownership and fix it properly. d /var/lib/lightdm 0755 lightdm lightdm -