Skip to content

Commit 51fcf8e

Browse files
committed
Add support for openSUSE distribution
* configurations for basic openSUSE Tumbleweed image. * Add new sub-image "initrd" to control the initrd content. * Un-blacklist the erofs for openSUSE image. * Add systemd-experimental for missing pcrlock files * openSUSE obs profile Signed-off-by: val4oss <val4oss@pm.me>
1 parent 787d72a commit 51fcf8e

File tree

7 files changed

+114
-0
lines changed

7 files changed

+114
-0
lines changed

mkosi.conf.d/opensuse/mkosi.conf

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
3+
[Match]
4+
Distribution=opensuse
5+
6+
[Distribution]
7+
Release=tumbleweed
8+
9+
[Config]
10+
Dependencies=initrd
11+
12+
[Content]
13+
Initrds=%O/initrd
14+
Packages=
15+
bpftool
16+
# SSL CA needed for zypper
17+
ca-certificates
18+
ca-certificates-mozilla
19+
cryptsetup
20+
distribution-gpg-keys
21+
git-core
22+
iproute2
23+
iputils
24+
kernel-default
25+
kernel-firmware-all
26+
libcap-ng-utils
27+
libfido2-1
28+
# Needed for TPM2 tools
29+
libtss2-tcti-device0
30+
man
31+
openssh
32+
openssh-clients
33+
openssh-server
34+
patterns-base-base
35+
pam
36+
pam_pwquality
37+
pcsc-lite
38+
pcsc-ccid
39+
perf
40+
polkit
41+
procps
42+
python3
43+
rpm
44+
sbsigntools
45+
sdbootutil
46+
shadow
47+
systemd-boot
48+
systemd-container
49+
systemd-experimental
50+
systemd-networkd
51+
systemd-resolved
52+
systemd-ukify
53+
transactional-update
54+
tpm2.0-tools
55+
tpm2-0-tss
56+
veritysetup
57+
vim-small
58+
wget2
59+
xz
60+
zram-generator
61+
zypper
62+
63+
VolatilePackages=
64+
systemd-boot
65+
systemd-container
66+
systemd-networkd
67+
systemd-resolved
68+
systemd-ukify

mkosi.images/initrd/mkosi.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
3+
[Include]
4+
Include=mkosi-initrd
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
3+
[Match]
4+
Distribution=opensuse
5+
6+
[Content]
7+
# Main pcrlock files has been move from experimental to udev package but some
8+
# needed files are still in systemd-experimental:
9+
# - /usr/lib/systemd/system/systemd-pcrlock-file-system.service
10+
# - /usr/lib/systemd/system/systemd-pcrlock-firmware-code.service
11+
# - /usr/lib/systemd/system/systemd-pcrlock-firmware-config.service
12+
Packages=
13+
systemd-experimental
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
# SPDX-License-Identifier: LGPL-2.1-or-later
3+
4+
# By default erofs is blacklisted in openSUSE and UKIs use erofs for the usrfs
5+
# we need to remove the blacklist to be able to mount erofs usrfs
6+
ln -sf /dev/null "$BUILDROOT/usr/lib/modprobe.d/60-blacklist_fs-erofs.conf"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
3+
[Match]
4+
ToolsTreeDistribution=opensuse
5+
ToolsTreeRelease=tumbleweed
6+
7+
[Build]
8+
ToolsTreeSandboxTrees=opensuse.repo:/etc/zypp/repos.d/systemd.repo
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
3+
[Match]
4+
Distribution=opensuse
5+
Release=tumbleweed
6+
7+
[Build]
8+
SandboxTrees=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=0
6+
gpgkey=https://download.opensuse.org/repositories/system:/systemd/openSUSE_Tumbleweed/repodata/repomd.xml.key
7+
enabled=1

0 commit comments

Comments
 (0)