Makes testing as an unprivileged user easier. We also install sudo
and polkit in the default image to make auth work.
less
nano
strace
+ sudo
systemd
tmux
udev
linux
openssh
perf
+ polkit
python
qemu-user-static
shim
openssh-server
patterns-base-minimal_base
perf
+ polkit
python3
qemu-linux-user
shim
strace
+ sudo-policy-wheel-auth-self
systemd-boot
openssh-clients
openssh-server
perf
+ polkit
python3
strace
systemd-resolved
libtss2-tcti-device0
openssh-client
openssh-server
+ polkitd
python3
qemu-user-static
shim-signed
--- /dev/null
+#!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-or-later
+set -e
+
+if [[ "$DISTRIBUTION" =~ ubuntu|debian ]]; then
+ SUDO_GROUP=sudo
+else
+ SUDO_GROUP=wheel
+fi
+
+mkosi-chroot \
+ useradd \
+ --user-group \
+ --create-home \
+ --password "$(openssl passwd -1 mkosi)" \
+ --groups "$SUDO_GROUP",systemd-journal \
+ --shell /bin/bash \
+ mkosi