From: Richard Maw Date: Mon, 27 Nov 2023 17:50:49 +0000 (+0000) Subject: mkosi: Add testuser and tar to system image X-Git-Tag: v256-rc1~1467^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0947748555c77754e09f0c6fe6919112b0aed2f0;p=thirdparty%2Fsystemd.git 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 --- diff --git a/mkosi.images/system/mkosi.conf b/mkosi.images/system/mkosi.conf index 7612f221cc5..6948f8eb7ce 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 e0728de2798..0fec067ebb2 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 <