Skip to content

Commit 943fb06

Browse files
committed
Bump to Fedora 41
F41 is out let's update COSA to be based on Fedora 41.
1 parent 9d38a32 commit 943fb06

9 files changed

+12
-347
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# When rebasing to new Fedora, also update openshift/release:
22
# https://github.com/openshift/release/tree/master/ci-operator/config/coreos/coreos-assembler/coreos-coreos-assembler-main.yaml
3-
FROM quay.io/fedora/fedora:40
3+
FROM quay.io/fedora/fedora:41
44
WORKDIR /root/containerbuild
55

66
# Keep this Dockerfile idempotent for local development rebuild use cases.

build.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,12 @@ patch_osbuild() {
168168
# To make it easier to apply patches we'll move around the osbuild
169169
# code on the system first:
170170
rmdir /usr/lib/osbuild/osbuild
171-
mv /usr/lib/python3.12/site-packages/osbuild /usr/lib/osbuild/
171+
mv /usr/lib/python3.13/site-packages/osbuild /usr/lib/osbuild/
172172
mkdir /usr/lib/osbuild/tools
173173
mv /usr/bin/osbuild-mpp /usr/lib/osbuild/tools/
174174

175175
# Now all the software is under the /usr/lib/osbuild dir and we can patch
176-
cat /usr/lib/coreos-assembler/0001-parsing-add-parse_location_into_parts.patch \
177-
/usr/lib/coreos-assembler/0002-parsing-treat-locations-without-scheme-as-belonging-.patch \
178-
/usr/lib/coreos-assembler/0003-org.osbuild.selinux-support-operating-on-mounts.patch \
179-
/usr/lib/coreos-assembler/0004-org.osbuild.selinux-support-for-specifying-where-fil.patch \
180-
/usr/lib/coreos-assembler/0001-osbuild-remoteloop-add-more-loop-device-options.patch \
176+
cat /usr/lib/coreos-assembler/0001-osbuild-remoteloop-add-more-loop-device-options.patch \
181177
/usr/lib/coreos-assembler/0002-osbuild-loop-make-the-loop-device-if-missing.patch \
182178
/usr/lib/coreos-assembler/0003-util-osrelease.py-improve-whitespace-and-quote-strip.patch \
183179
/usr/lib/coreos-assembler/0004-util-chroot-Add-support-for-custom-directory-bind-mo.patch \
@@ -187,7 +183,7 @@ patch_osbuild() {
187183
# And then move the files back; supermin appliance creation will need it back
188184
# in the places delivered by the RPM.
189185
mv /usr/lib/osbuild/tools/osbuild-mpp /usr/bin/osbuild-mpp
190-
mv /usr/lib/osbuild/osbuild /usr/lib/python3.12/site-packages/osbuild
186+
mv /usr/lib/osbuild/osbuild /usr/lib/python3.13/site-packages/osbuild
191187
mkdir /usr/lib/osbuild/osbuild
192188
}
193189

src/0001-parsing-add-parse_location_into_parts.patch

Lines changed: 0 additions & 68 deletions
This file was deleted.

src/0002-parsing-treat-locations-without-scheme-as-belonging-.patch

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/0003-org.osbuild.selinux-support-operating-on-mounts.patch

Lines changed: 0 additions & 116 deletions
This file was deleted.

src/0004-org.osbuild.selinux-support-for-specifying-where-fil.patch

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/cmd-generate-release-meta

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ def get_floating_tag(rel, tags):
9696
for tag in tags:
9797
if rel not in tag:
9898
if found != "":
99-
raise f"multiple floating tags within: {tags}"
99+
raise ValueError(f"multiple floating tags within: {tags}")
100100
found = tag
101101
if found == "":
102-
raise f"failed to find floating tag within: {tags}"
102+
raise ValueError(f"failed to find floating tag within: {tags}")
103103
return found
104104

105105

0 commit comments

Comments
 (0)