summaryrefslogtreecommitdiffstats
path: root/mkosi.extra
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-10-09 14:49:07 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-10-11 11:35:02 +0200
commit0d0ecaab000cf2768a3edf1e73119bf2fce952b0 (patch)
tree5c30f0b2940b5cd1fa4dbae192c18ce3abcc1c00 /mkosi.extra
parentMerge pull request #34707 from YHNdnzj/user-manager-reexec (diff)
downloadsystemd-0d0ecaab000cf2768a3edf1e73119bf2fce952b0.tar.xz
systemd-0d0ecaab000cf2768a3edf1e73119bf2fce952b0.zip
mkosi: Fix up ownership of testuser home directory on first boot
When building unprivileged, the testuser home directory ends up owned by root:root because mkosi can't chown directories to other owners when running unprivileged. So let's fix up the testuser ownership on first boot with tmpfiles instead.
Diffstat (limited to 'mkosi.extra')
-rw-r--r--mkosi.extra/usr/lib/tmpfiles.d/testuser.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkosi.extra/usr/lib/tmpfiles.d/testuser.conf b/mkosi.extra/usr/lib/tmpfiles.d/testuser.conf
new file mode 100644
index 0000000000..7113177f4d
--- /dev/null
+++ b/mkosi.extra/usr/lib/tmpfiles.d/testuser.conf
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+z! /home/testuser 700 testuser testuser