From 0947748555c77754e09f0c6fe6919112b0aed2f0 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Mon, 27 Nov 2023 17:50:49 +0000 Subject: [PATCH] mkosi: Add testuser and tar to system image The integration tests are installed into the image with the intention that it should be possible to run those tests, but those tests require the named user testuser and tar is needed for machined-import --- mkosi.images/system/mkosi.conf | 1 + mkosi.images/system/mkosi.postinst.chroot | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/mkosi.images/system/mkosi.conf b/mkosi.images/system/mkosi.conf index 7612f221cc..6948f8eb7c 100644 --- a/mkosi.images/system/mkosi.conf +++ b/mkosi.images/system/mkosi.conf @@ -33,6 +33,7 @@ Packages= strace systemd tmux + tar tree udev util-linux diff --git a/mkosi.images/system/mkosi.postinst.chroot b/mkosi.images/system/mkosi.postinst.chroot index e0728de279..0fec067ebb 100755 --- a/mkosi.images/system/mkosi.postinst.chroot +++ b/mkosi.images/system/mkosi.postinst.chroot @@ -83,3 +83,12 @@ if [ "$ID" = "centos" ] && [ "$VERSION" = "8" ]; then alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 alternatives --set python3 /usr/bin/python3.9 fi + +mkdir -p /usr/lib/sysusers.d +cat >/usr/lib/sysusers.d/testuser.conf </usr/lib/tmpfiles.d/testuser.conf <