Skip to content

Commit 1b4a91f

Browse files
committed
Add support for openSUSE distribution
* configurations for basic openSUSE Tumbleweed image. * Use SYSTEMD_REPART_OVERRIDE_FSTYPE_USR=squashfs * By default erofs is blacklisted in openSUSE and UKIs use erofs for the usrfs * openSUSE obs profile
1 parent 86a6d10 commit 1b4a91f

File tree

4 files changed

+98
-0
lines changed

4 files changed

+98
-0
lines changed

mkosi.conf.d/opensuse/mkosi.conf

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
3+
[Match]
4+
Distribution=opensuse
5+
6+
[Distribution]
7+
Release=tumbleweed
8+
9+
[Build]
10+
# By default erofs is blacklisted in openSUSE and UKIs use erofs for the usrfs
11+
Environment=
12+
SYSTEMD_REPART_OVERRIDE_FSTYPE_USR=squashfs
13+
14+
[Content]
15+
# Some pcrlock files from the experimental package are still needed in the
16+
# initrd to unseal TPM as:
17+
# - /usr/lib/systemd/system/systemd-pcrlock-file-system.service
18+
# - /usr/lib/systemd/system/systemd-pcrlock-firmware-code.service
19+
# - /usr/lib/systemd/system/systemd-pcrlock-firmware-config.service
20+
InitrdPackages=
21+
systemd-experimental
22+
23+
Packages=
24+
bpftool
25+
cryptsetup
26+
distribution-gpg-keys
27+
git-core
28+
iproute2
29+
iputils
30+
kernel-default
31+
libcap-ng-utils
32+
libfido2-1
33+
# Needed for TPM2 tools
34+
libtss2-tcti-device0
35+
man
36+
openssh
37+
openssh-clients
38+
openssh-server
39+
patterns-base-minimal_base
40+
pam
41+
pam_pwquality
42+
pcsc-lite
43+
pcsc-ccid
44+
perf
45+
polkit
46+
procps
47+
python3
48+
rpm
49+
sbsigntools
50+
shadow
51+
systemd-boot
52+
systemd-container
53+
systemd-experimental
54+
systemd-homed
55+
systemd-networkd
56+
systemd-resolved
57+
systemd-ukify
58+
tpm2.0-tools
59+
tpm2-0-tss
60+
veritysetup
61+
vim-small
62+
wget2
63+
xz
64+
zram-generator
65+
zypper
66+
67+
VolatilePackages=
68+
systemd-boot
69+
systemd-container
70+
systemd-homed
71+
systemd-networkd
72+
systemd-resolved
73+
systemd-ukify
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
3+
[Match]
4+
ToolsTreeDistribution=opensuse
5+
ToolsTreeRelease=tumbleweed
6+
7+
[Build]
8+
ToolsTreeSandboxTrees=systemd.gpg:/usr/share/pki/rpm-gpg/systemd.gpg
9+
opensuse.repo:/etc/zypp/repos.d/systemd.repo
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
3+
[Match]
4+
Distribution=opensuse
5+
Release=tumbleweed
6+
7+
[Build]
8+
SandboxTrees=systemd.gpg:/usr/share/pki/rpm-gpg/systemd.gpg
9+
opensuse.repo:/etc/zypp/repos.d/systemd.repo

mkosi.profiles/obs/opensuse.repo

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[system_systemd]
2+
name=system:systemd Project (openSUSE_Tumbleweed)
3+
type=rpm-md
4+
baseurl=https://download.opensuse.org/repositories/system:/systemd/openSUSE_Tumbleweed
5+
gpgcheck=1
6+
gpgkey=file:///usr/share/pki/rpm-gpg/systemd.gpg
7+
enabled=1

0 commit comments

Comments
 (0)