diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2026-03-02 16:19:54 +0000 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2026-03-02 16:19:54 +0000 |
| commit | 21bc9efbcc859640ab2c3cef20da4d772d2b2aad (patch) | |
| tree | 1f5744aa3efb92baaede80c30fa7e7fd6a4addf9 | |
| parent | 2e8cf2536db734cc2a3b1ad2b7b0cd935761036b (diff) | |
More qemu-user-static->qemu-user-binfmt changes
| -rw-r--r-- | README.md | 2 | ||||
| -rwxr-xr-x | build-docker.sh | 8 | ||||
| -rw-r--r-- | scripts/dependencies_check | 2 |
3 files changed, 6 insertions, 6 deletions
@@ -20,7 +20,7 @@ below. To install the required dependencies for `pi-gen` you should run: ```bash -apt install coreutils quilt parted qemu-user-static debootstrap zerofree zip \ +apt install coreutils quilt parted qemu-user-binfmt debootstrap zerofree zip \ dosfstools e2fsprogs libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc \ gpg pigz xxd arch-test bmap-tools kmod ``` diff --git a/build-docker.sh b/build-docker.sh index 9c04651..14715d2 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -114,10 +114,10 @@ case $(uname -m) in ;; esac -# Check if qemu-arm-static and /proc/sys/fs/binfmt_misc are present +# Check if qemu-arm and /proc/sys/fs/binfmt_misc are present if [[ "${binfmt_misc_required}" == "1" ]]; then - if ! qemu_arm=$(which qemu-arm-static) ; then - echo "qemu-arm-static not found (please install qemu-user-static)" + if ! qemu_arm=$(which qemu-arm) ; then + echo "qemu-arm not found (please install qemu-user-binfmt)" exit 1 fi if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then @@ -150,7 +150,7 @@ time ${DOCKER} run \ $DOCKER_CMDLINE_POST \ pi-gen \ bash -e -o pipefail -c " - dpkg-reconfigure qemu-user-static && + dpkg-reconfigure qemu-user-binfmt && # binfmt_misc is sometimes not mounted with debian trixie image (mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc || true) && cd /pi-gen; ./build.sh ${BUILD_OPTS} && diff --git a/scripts/dependencies_check b/scripts/dependencies_check index 32c42ef..fb709e4 100644 --- a/scripts/dependencies_check +++ b/scripts/dependencies_check @@ -3,7 +3,7 @@ # # Each dependency is in the form of a tool to test for, optionally followed by # a : and the name of a package if the package on a Debian-ish system is not -# named for the tool (i.e., qemu-user-static). +# named for the tool (i.e., qemu-user-binfmt). dependencies_check() { local depfile deps missing |
