Skip to content

Commit

Permalink
build: prevent migration debuginfo from being installed in rpm2migration
Browse files Browse the repository at this point in the history
Updates the Dockerfile to limit the file being added for 'rpm2migration' to only the migrations rpm. This is to prevent the migrations-debuginfo rpm from being installed.
  • Loading branch information
etungsten committed Apr 15, 2020
1 parent f28dd56 commit 1c65b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ USER root
RUN --mount=target=/host \
mkdir -p /local/rpms /local/migrations ./rpmbuild/RPMS \
&& ln -s /host/build/packages/*.rpm ./rpmbuild/RPMS \
&& cp /host/build/packages/bottlerocket-${ARCH}-migrations-*.rpm /local/migrations \
&& find /host/build/packages/ -maxdepth 1 -type f -name "bottlerocket-${ARCH}-migrations-*.rpm" -not -iname '*debuginfo*' -exec cp '{}' '/local/migrations/' ';' \
&& createrepo_c \
-o ./rpmbuild/RPMS \
-x '*-debuginfo-*.rpm' \
Expand Down

0 comments on commit 1c65b7d

Please sign in to comment.