We install fewer packages that are not available on Focal and make
sure to configure repart to disable an ext4 default feature that
isn't supported by the Jammy and Focal kernels.
Packages=
?exact-name(systemd-ukify)
apt
- archlinux-keyring
bash
btrfs-progs
bubblewrap
coreutils
cpio
curl
- dbus-broker
debian-archive-keyring
- dnf
dosfstools
e2fsprogs
erofs-utils
iproute2
iputils-ping
libtss2-dev
- makepkg
mtools
openssh-client
openssh-server
openssl
ovmf
- pacman-package-manager
pesign
python3-cryptography
python3-pefile
socat
squashfs-tools
strace
- swtpm
systemd
systemd-container
systemd-coredump
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=ubuntu
+Release=|focal
+Release=|jammy
+
+[Content]
+# "orphan_file" is enabled by default in recent versions of mkfs.ext4 but not supported by the Jammy/Focal kernels
+# so we explicitly disable it.
+Environment=SYSTEMD_REPART_MKFS_OPTIONS_EXT4="-O ^orphan_file"
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=ubuntu
+Release=focal
+
+[Content]
+Packages=
+ dbus
--- /dev/null
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Distribution=|!ubuntu
+Release=|!focal
+
+[Content]
+Packages=
+ archlinux-keyring
+ dbus-broker
+ dnf
+ makepkg
+ pacman-package-manager
+ swtpm
[Match]
Release=!jammy
+Release=!focal
[Content]
Packages=