From 0d0ecaab000cf2768a3edf1e73119bf2fce952b0 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 9 Oct 2024 14:49:07 +0200 Subject: [PATCH] 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. --- mkosi.extra/usr/lib/tmpfiles.d/testuser.conf | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 mkosi.extra/usr/lib/tmpfiles.d/testuser.conf 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 00000000000..7113177f4de --- /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