Skip to content

Commit 617f343

Browse files
committed
Bump to Fedora 41
F41 is out let's update COSA to be based on Fedora 41.
1 parent f529f73 commit 617f343

9 files changed

+14
-349
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
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.
@@ -18,7 +18,7 @@ COPY ./ /root/containerbuild/
1818
RUN ./build.sh write_archive_info
1919
RUN ./build.sh make_and_makeinstall
2020
RUN ./build.sh configure_user
21-
RUN ./build.sh patch_osbuild
21+
# RUN ./build.sh patch_osbuild
2222

2323
# clean up scripts (it will get cached in layers, but oh well)
2424
WORKDIR /srv/

build.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,21 +168,17 @@ 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-
| patch -d /usr/lib/osbuild -p1
176+
patch -d /usr/lib/osbuild -p1 < foo.patch
181177

182178
# And then move the files back; supermin appliance creation will need it back
183179
# in the places delivered by the RPM.
184180
mv /usr/lib/osbuild/tools/osbuild-mpp /usr/bin/osbuild-mpp
185-
mv /usr/lib/osbuild/osbuild /usr/lib/python3.12/site-packages/osbuild
181+
mv /usr/lib/osbuild/osbuild /usr/lib/python3.13/site-packages/osbuild
186182
mkdir /usr/lib/osbuild/osbuild
187183
}
188184

@@ -200,5 +196,5 @@ else
200196
install_ocp_tools
201197
trust_redhat_gpg_keys
202198
configure_user
203-
patch_osbuild
199+
#patch_osbuild
204200
fi

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)