Skip to content

Commit e9a59eb

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 e9a59eb

File tree

7 files changed

+125
-0
lines changed

7 files changed

+125
-0
lines changed

mkosi.conf.d/opensuse/mkosi.conf

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# SPDX-License-Identifier: LGPL-2.1-or-later
2+
3+
[Match]
4+
Distribution=opensuse
5+
6+
[Distribution]
7+
Release=tumbleweed
8+
Repositories=non-oss
9+
10+
[Config]
11+
Dependencies=initrd
12+
13+
[Content]
14+
Initrds=%O/initrd
15+
Packages=
16+
aaa_base
17+
bash
18+
bpftool
19+
ca-certificates
20+
ca-certificates-mozilla
21+
coreutils
22+
cracklib-dict-small
23+
cryptsetup
24+
curl
25+
device-mapper
26+
distribution-gpg-keys
27+
efibootmgr
28+
filesystem
29+
git-core
30+
glibc-locale-base
31+
gzip
32+
kernel-default
33+
kernel-firmware-all
34+
libcurl-mini4
35+
libtss2-tcti-device0
36+
lsb-release
37+
netcfg
38+
openssl
39+
openSUSE-build-key
40+
openSUSE-release
41+
patterns-base-base
42+
pam
43+
pam_pwquality
44+
procps
45+
shadow
46+
sbsigntools
47+
sdbootutil
48+
systemd-boot
49+
systemd-container
50+
systemd-experimental
51+
systemd-networkd
52+
systemd-portable
53+
systemd-resolved
54+
systemd-ukify
55+
timezone
56+
tpm2.0-tools
57+
tpm2-0-tss
58+
user(nobody)
59+
vim
60+
virt-firmware
61+
veritysetup
62+
xz
63+
zypper
64+
65+
VolatilePackages=
66+
libsystemd0
67+
libudev1
68+
systemd
69+
systemd-boot
70+
systemd-container
71+
systemd-doc
72+
systemd-experimental
73+
systemd-homed
74+
systemd-journal-remote
75+
systemd-lang
76+
systemd-networkd
77+
systemd-portable
78+
systemd-resolved
79+
systemd-sysvcompat
80+
systemd-testsuite
81+
systemd-ukify
82+
udev

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: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
Packages=
10+
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+
[Base_System]
2+
name=Base:System Factory Devel 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/systemd:/systemd/openSUSE_Tumbleweed/repodata/repomd.xml.key
7+
enabled=1

0 commit comments

Comments
 (0)