Skip to content

Commit 4a1916c

Browse files
authored
deps: update to Fedora 42 (edgelesssys#3929)
* [wip] chore: update to Fedora 42 * image: update shasums * image: fix build * measured-boot: ignore PCR9 temporarily * image: don't include osrel section in UKI * nix: patch systemd to not include .osrel section
1 parent 6e1e49c commit 4a1916c

File tree

13 files changed

+407
-372
lines changed

13 files changed

+407
-372
lines changed

debugd/filebeat/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM fedora:40@sha256:3c86d25fef9d2001712bc3d9b091fc40cf04be4767e48f1aa3b785bf58d300ed AS release
1+
FROM fedora:42@sha256:3da64cb89971a1cdbc6046e307eeebcb54f7281c0a606ee48d9995473f6b88d5 AS release
22

33
RUN dnf install -y https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-8.6.2-x86_64.rpm
44

debugd/logstash/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM fedora:40@sha256:3c86d25fef9d2001712bc3d9b091fc40cf04be4767e48f1aa3b785bf58d300ed AS build
1+
FROM fedora:42@sha256:3da64cb89971a1cdbc6046e307eeebcb54f7281c0a606ee48d9995473f6b88d5 AS build
22

33
ARG LOGSTASH_VER=8.6.1
44

55
RUN curl -fsSLO https://artifacts.opensearch.org/logstash/logstash-oss-with-opensearch-output-plugin-$LOGSTASH_VER-linux-x64.tar.gz
66
RUN tar -zxvf logstash-oss-with-opensearch-output-plugin-$LOGSTASH_VER-linux-x64.tar.gz
77

8-
FROM fedora:40@sha256:3c86d25fef9d2001712bc3d9b091fc40cf04be4767e48f1aa3b785bf58d300ed AS release
8+
FROM fedora:42@sha256:3da64cb89971a1cdbc6046e307eeebcb54f7281c0a606ee48d9995473f6b88d5 AS release
99

1010
COPY --from=build logstash-* /usr/share/logstash
1111

debugd/metricbeat/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM fedora:40@sha256:3c86d25fef9d2001712bc3d9b091fc40cf04be4767e48f1aa3b785bf58d300ed AS release
1+
FROM fedora:42@sha256:3da64cb89971a1cdbc6046e307eeebcb54f7281c0a606ee48d9995473f6b88d5 AS release
22

33
RUN dnf install -y https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-8.9.2-x86_64.rpm
44

flake.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
system:
2121
let
2222
overlay = final: prev: {
23+
systemd = prev.systemd.overrideAttrs (old: {
24+
patches = old.patches or [ ] ++ [ ./image/0001-ukify-dont-bundle-osrel-section.patch ];
25+
});
26+
2327
rpm = prev.rpm.overrideAttrs (old: {
2428
nativeBuildInputs = old.nativeBuildInputs ++ [ prev.makeWrapper ];
2529
postFixup = ''
@@ -94,7 +98,8 @@
9498
# Note that it's *not* a legacy attribute.
9599
legacyPackages = {
96100
generate = pkgs.callPackage ./nix/generate.nix { };
97-
} // pkgs;
101+
}
102+
// pkgs;
98103

99104
packages.mkosi = mkosiDev;
100105

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From f4d9b358e9ff6761a3e72db6f109fe4576ea58c2 Mon Sep 17 00:00:00 2001
2+
From: Moritz Sanft <[email protected]>
3+
Date: Tue, 2 Sep 2025 10:21:58 +0200
4+
Subject: [PATCH] ukify: dont bundle osrel section
5+
6+
Signed-off-by: Moritz Sanft <[email protected]>
7+
---
8+
src/ukify/ukify.py | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py
12+
index fce36b6686..1f261299b3 100755
13+
--- a/src/ukify/ukify.py
14+
+++ b/src/ukify/ukify.py
15+
@@ -1393,7 +1393,7 @@ def make_uki(opts: UkifyConfig) -> None:
16+
17+
sections = [
18+
# name, content, measure?
19+
- ('.osrel', opts.os_release, True),
20+
+ # ('.osrel', opts.os_release, True),
21+
('.cmdline', opts.cmdline, True),
22+
('.dtb', opts.devicetree, True),
23+
*(('.dtbauto', dtb, True) for dtb in opts.devicetree_auto),
24+
--
25+
2.51.0
26+

image/base/mkosi.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Distribution]
22
Distribution=fedora
3-
Release=40
3+
Release=42
44
RepositoryKeyFetch=yes
55

66
[Output]
@@ -63,6 +63,7 @@ Packages=passwd
6363
vim
6464
curl
6565
wget
66+
rpm
6667

6768
RemoveFiles=/var/log
6869
RemoveFiles=/var/cache

image/base/mkosi.finalize

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ set -euxo pipefail
1010
# /etc/shadow-.
1111
tmp=$(mktemp)
1212
cp -a "${BUILDROOT}/etc/shadow-" "${tmp}"
13-
mkosi-chroot chage -d "" etcd
13+
mkosi-chroot chage -d "" etcd || true
1414
cp -a "${tmp}" "${BUILDROOT}/etc/shadow-"

image/base/mkosi.postinst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ mkosi-chroot rpm -qa --qf '%{name};%{version};%{license}\n' --dbpath "/var/lib/r
1414
cp "${BUILDROOT}/usr/share/constellation/packagemanifest" "${OUTPUTDIR}/"
1515

1616
# copy rpmdb to outputs
17-
cp "${BUILDROOT}"/var/lib/rpm/{rpmdb.sqlite-wal,rpmdb.sqlite-shm,rpmdb.sqlite,.rpm.lock} "${OUTPUTDIR}/"
17+
cp "${BUILDROOT}"/var/lib/rpm/{rpmdb.sqlite-wal,rpmdb.sqlite-shm,rpmdb.sqlite} "${OUTPUTDIR}/"
1818

1919
# FIXME(msanft):
2020
# Hack to satisfy Bazel's [output expectations](./BUILD.bazel).
2121
# 2 Bazel packages can't share the same output paths, as it seems, and the
2222
# files being copied around here aren't large, so copying them around doesn't
2323
# hurt.
2424
cp "${OUTPUTDIR}/packagemanifest" "${OUTPUTDIR}/lts-packagemanifest"
25-
cp "${OUTPUTDIR}/.rpm.lock" "${OUTPUTDIR}/lts-.rpm.lock"
25+
touch "${OUTPUTDIR}/lts-.rpm.lock"
2626
cp "${OUTPUTDIR}/rpmdb.sqlite" "${OUTPUTDIR}/lts-rpmdb.sqlite"
2727
cp "${OUTPUTDIR}/rpmdb.sqlite-shm" "${OUTPUTDIR}/lts-rpmdb.sqlite-shm"
2828
cp "${OUTPUTDIR}/rpmdb.sqlite-wal" "${OUTPUTDIR}/lts-rpmdb.sqlite-wal"
2929
cp "${OUTPUTDIR}/packagemanifest" "${OUTPUTDIR}/mainline-packagemanifest"
30-
cp "${OUTPUTDIR}/.rpm.lock" "${OUTPUTDIR}/mainline-.rpm.lock"
30+
touch "${OUTPUTDIR}/mainline-.rpm.lock"
3131
cp "${OUTPUTDIR}/rpmdb.sqlite" "${OUTPUTDIR}/mainline-rpmdb.sqlite"
3232
cp "${OUTPUTDIR}/rpmdb.sqlite-shm" "${OUTPUTDIR}/mainline-rpmdb.sqlite-shm"
3333
cp "${OUTPUTDIR}/rpmdb.sqlite-wal" "${OUTPUTDIR}/mainline-rpmdb.sqlite-wal"

image/initrd/mkosi.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[Distribution]
22
Distribution=fedora
3-
Release=40
3+
Release=42
44
RepositoryKeyFetch=yes
55

66
[Output]

0 commit comments

Comments
 (0)