15 lines
817 B
Bash
Executable File
15 lines
817 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Read-only upgrade rehearsal using an Edge dpkg status export; never changes the Edge.
|
|
set -Eeuo pipefail
|
|
BUNDLE=$(cd "${1:?Usage: test_ffmpeg_upgrade.sh BUNDLE EDGE_DPKG_STATUS}" && pwd)
|
|
STATUS=$(realpath "${2:?Provide an exported /var/lib/dpkg/status}")
|
|
IMAGE=${IOMATEX_BUNDLE_BUILDER_IMAGE:-debian:bullseye@sha256:6f519a81440354a85eb592c5f32109ab80605f6b892455983a6f618bf87fabe9}
|
|
docker run --rm --network none -v "$BUNDLE:/bundle:ro" -v "$STATUS:/edge-status:ro" "$IMAGE" bash -ec '
|
|
printf "deb [trusted=yes] file:/bundle/repo ./\n" > /etc/apt/sources.list
|
|
rm -f /etc/apt/sources.list.d/*
|
|
dpkg --add-architecture arm64
|
|
apt-get update
|
|
apt-get -y --download-only --no-remove --no-install-recommends \
|
|
-o APT::Architecture=arm64 -o Dir::State::status=/edge-status install ffmpeg
|
|
'
|