Skip to content

Commit

Permalink
Merge pull request #740 from amazonlinux/br-migrations
Browse files Browse the repository at this point in the history
Update rpm2migrations process for Bottlerocket
  • Loading branch information
tjkirch authored Feb 14, 2020
2 parents 404f846 + 96be1a6 commit 93e9850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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/*.rpm ./rpmbuild/RPMS \
&& cp /host/build/thar-${ARCH}-migrations-*.rpm /local/migrations \
&& cp /host/build/bottlerocket-${ARCH}-migrations-*.rpm /local/migrations \
&& createrepo_c \
-o ./rpmbuild/RPMS \
-x '*-debuginfo-*.rpm' \
Expand Down
4 changes: 2 additions & 2 deletions tools/rpm2migrations
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ done

mkdir -p "${OUTPUT_DIR}"

MIGRATIONS_ARCHIVE="thar-${ARCH}-${VARIANT}-${VERSION_ID}-${BUILD_ID}-migrations.tar"
MIGRATIONS_ARCHIVE="bottlerocket-${ARCH}-${VARIANT}-${VERSION_ID}-${BUILD_ID}-migrations.tar"
ROOT_TEMP="$(mktemp -d)"
SYS_ROOT="${ARCH}-thar-linux-gnu/sys-root"
SYS_ROOT="${ARCH}-bottlerocket-linux-gnu/sys-root"
MIGRATIONS_DIR="${ROOT_TEMP}/${SYS_ROOT}/usr/share/migrations"

# "Install" the migrations (just puts them in $MIGRATIONS_DIR)
Expand Down

0 comments on commit 93e9850

Please sign in to comment.