Skip to content

Commit dc58799

Browse files
committed
Revert "Add org.osbuild.dmverity stage patch"
This reverts commit 180be1b. That patch is in the latest osbuild in Fedora now.
1 parent 7ebc623 commit dc58799

File tree

4 files changed

+0
-233
lines changed

4 files changed

+0
-233
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ COPY ./ /root/containerbuild/
2323
RUN ./build.sh write_archive_info
2424
RUN ./build.sh make_and_makeinstall
2525
RUN ./build.sh configure_user
26-
RUN ./build.sh patch_osbuild
2726

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

build.sh

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ if [ $# -gt 1 ]; then
2222
echo " configure_yum_repos"
2323
echo " install_rpms"
2424
echo " make_and_makeinstall"
25-
echo " patch_osbuild"
2625
exit 1
2726
fi
2827

@@ -161,27 +160,6 @@ write_archive_info() {
161160
prepare_git_artifacts "${srcdir}" /cosa/coreos-assembler-git.json /cosa/coreos-assembler-git.tar.gz
162161
}
163162

164-
patch_osbuild() {
165-
# Add a few patches that either haven't made it into a release or
166-
# that will be obsoleted with other work that will be done soon.
167-
168-
# To make it easier to apply patches we'll move around the osbuild
169-
# code on the system first:
170-
rmdir /usr/lib/osbuild/osbuild
171-
mv /usr/lib/python3.12/site-packages/osbuild /usr/lib/osbuild/
172-
mkdir /usr/lib/osbuild/tools
173-
mv /usr/bin/osbuild-mpp /usr/lib/osbuild/tools/
174-
175-
# Now all the software is under the /usr/lib/osbuild dir and we can patch
176-
patch -d /usr/lib/osbuild -p1 < /usr/lib/coreos-assembler/0001-stages-add-stage-for-creating-dm-verity-partitions.patch
177-
178-
# And then move the files back; supermin appliance creation will need it back
179-
# in the places delivered by the RPM.
180-
mv /usr/lib/osbuild/tools/osbuild-mpp /usr/bin/osbuild-mpp
181-
mv /usr/lib/osbuild/osbuild /usr/lib/python3.12/site-packages/osbuild
182-
mkdir /usr/lib/osbuild/osbuild
183-
}
184-
185163
if [ $# -ne 0 ]; then
186164
# Run the function specified by the calling script
187165
${1}
@@ -196,5 +174,4 @@ else
196174
install_ocp_tools
197175
trust_redhat_gpg_keys
198176
configure_user
199-
patch_osbuild
200177
fi

src/0001-stages-add-stage-for-creating-dm-verity-partitions.patch

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

src/cmdlib.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,6 @@ runvm() {
729729

730730
# include COSA in the image
731731
find /usr/lib/coreos-assembler/ -type f > "${vmpreparedir}/hostfiles"
732-
echo /usr/lib/osbuild/stages/org.osbuild.dmverity >> "${vmpreparedir}/hostfiles"
733732

734733
# and include all GPG keys
735734
find /etc/pki/rpm-gpg/ -type f >> "${vmpreparedir}/hostfiles"

0 commit comments

Comments
 (0)