Skip to content

Commit

Permalink
Use systemd-boot artifacts from fedora distro (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Feb 21, 2024
1 parent d89ec30 commit d56027c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
41 changes: 23 additions & 18 deletions packages/system/systemd/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
image: opensuse/leap:15.5

package_dir: /package

{{if eq .Values.name "systemd-boot"}}
image: fedora:39
prelude:
- dnf install -y systemd-boot
steps:
# Artifacts located at src/systemd/build/src/boot/efi/
# change the x64 to aa64 for arm64
- mkdir -p /package/usr/kairos/
{{ if .Values.arch }}
{{ if eq .Values.arch "arm64" }}
- cp /usr/lib/systemd/boot/efi/systemd-bootaa64.efi /package/usr/kairos/
- cp /usr/lib/systemd/boot/efi/linuxaa64.efi.stub /package/usr/kairos/
- cp /usr/lib/systemd/boot/efi/addonaa64.efi.stub /package/usr/kairos/
{{else}}
- cp /usr/lib/systemd/boot/efi/systemd-bootx64.efi /package/usr/kairos/
- cp /usr/lib/systemd/boot/efi/linuxx64.efi.stub /package/usr/kairos/
- cp /usr/lib/systemd/boot/efi/addonx64.efi.stub /package/usr/kairos/
{{end}}
{{end}}
{{else if eq .Values.name "systemd-ukify"}}

image: opensuse/leap:15.5

prelude:
- zypper ref && zypper in -y gcc13 git ninja gperf libpcap libpcap-devel libcap-devel cmake libmount-devel rsync diffutils openssl-devel tpm2-* python311-pip python311-cryptography
- update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
Expand All @@ -21,22 +42,6 @@ steps:
- pip3 install meson ninja2
- PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && cd src/systemd && env CC=gcc-13 meson setup build -Dmode=release -Dbootloader=true -Defi=true -Dukify=true -Dblkid=true -Dopenssl=true -Dshared-lib-tag=${PACKAGE_VERSION}-kairos -Dsbat-distro="Kairos" -Dsbat-distro-url="kairos.io" -Dsbat-distro-summary="Kairos" -Dsbat-distro-version="kairos-${PACKAGE_VERSION}" -Ddns-servers='' -Dsysvinit-path= -Dsysvrcnd-path= -Dtpm=false -Dinstall-tests=false -Dnss-resolve=disabled -Dlogind=false -Dcoredump=false -Dhomed=disabled -Dfirstboot=false -Dhostnamed=false -Dhibernate=false -Dinitrd=false -Dimportd=false -Dkernel-install=false -Dlocaled=false -Dmachined=false -Dnetworkd=false -Dnss-myhostname=false -Dnss-mymachines=false -Dnss-systemd=false -Doomd=false -Dportabled=false -Dhwdb=false -Dpstore=false -Dquotacheck=false -Drandomseed=false -Drepart=false -Dresolve=false -Drfkill=false -Dsysext=false -Danalyze=false -Dsysupdate=false -Dsysusers=false -Dstoragetm=false -Dtimedated=false -Dtimesyncd=false -Dtmpfiles=false -Duserdb=false -Dvconsole=false -Dxdg-autostart=false -Didn=false -Dpolkit=false -Dnscd=false -Dkmod=false -Ddbus=false -Dglib=false -Dbacklight=false -Dldconfig=false -Dgshadow=false -Dwheel-group=false -Dadm-group=false -Dxkbcommon=false -Dzstd=false -Dlz4=false -Dutmp=false -Dlink-udev-shared=false -Dlink-systemctl-shared=false -Dlink-networkd-shared=false -Dlink-timesyncd-shared=false -Dlink-journalctl-shared=false -Dlink-boot-shared=false -Dlink-portabled-shared=false -Denvironment-d=false -Dqrencode=false -Dpwquality=false -Dlibcurl=false -Dfdisk=false -Dlibidn2=false -Dlibiptc=false -Ddns-over-tls=false -Didn=false -Dgnutls=false -Dp11kit=false -Dlibidn=false -Dlibidn2=false -Dgcrypt=false -Dxz=false -Dzlib=false -Dbzip2=false
- cd src/systemd && ninja -C build
{{if eq .Values.name "systemd-boot"}}
# Artifacts located at src/systemd/build/src/boot/efi/
# change the x64 to aa64 for arm64
- mkdir -p /package/usr/kairos/
{{ if .Values.arch }}
{{ if eq .Values.arch "arm64" }}
- cp src/systemd/build/src/boot/efi/systemd-bootaa64.efi /package/usr/kairos/
- cp src/systemd/build/src/boot/efi/linuxaa64.efi.stub /package/usr/kairos/
- cp src/systemd/build/src/boot/efi/addonaa64.efi.stub /package/usr/kairos/
{{else}}
- cp src/systemd/build/src/boot/efi/systemd-bootx64.efi /package/usr/kairos/
- cp src/systemd/build/src/boot/efi/linuxx64.efi.stub /package/usr/kairos/
- cp src/systemd/build/src/boot/efi/addonx64.efi.stub /package/usr/kairos/
{{end}}
{{end}}
{{else if eq .Values.name "systemd-ukify"}}
- mkdir -p /package/usr/kairos/
- mkdir -p /package/usr/lib/systemd/
- mkdir -p /package/usr/lib64/systemd/
Expand Down
2 changes: 1 addition & 1 deletion packages/system/systemd/collection.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
packages:
- name: "systemd-boot"
category: "system"
version: "255+3"
version: "255+4"
labels:
github.repo: "systemd"
autobump.revdeps: "true"
Expand Down

0 comments on commit d56027c

Please sign in to comment.