hashipi

Raspberry Pi Test Cluster for HashiCorp Vault, Nomad and Consul
git clone https://git.in0rdr.ch/hashipi.git
Log | Files | Refs | README

commit e0429a3c255a93e80050bea832b2a84a359eed7a
parent 2006e74c66a8587b63500dca6e2e3ee2bf61afdc
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Sat, 18 Feb 2023 22:13:10 +0100

doc(binfmt): add reset for binfmt_misc entries

Diffstat:
MREADME.md | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -100,9 +100,15 @@ Also, make sure to choose the correct "static" binary for the OS architecture in Configure `binfmt_misc` to use the static binaries: ```bash +sudo su +# Remove binfmt_misc entry files before register the entry. When same name's file +# /proc/sys/fs/binfmt_misc/qemu-$arch exists, the register command is failed with +# an error message "sh: write error: File exists": +# https://github.com/multiarch/qemu-user-static/blob/master/README.md +find /proc/sys/fs/binfmt_misc -type f -name 'qemu-*' -exec sh -c 'echo -1 > {}' \; # Example from: # https://github.com/multiarch/qemu-user-static/blob/master/containers/latest/register.sh -sudo qemu-binfmt-conf.sh --qemu-suffix "-static" --qemu-path /usr/bin +qemu-binfmt-conf.sh --qemu-suffix "-static" --qemu-path /usr/bin # Check cat /proc/sys/fs/binfmt_misc/qemu-aarch64 @@ -126,6 +132,6 @@ Don't forget to create a new set of [Consul TLS certificates](#Consul) after eac To [write the resulting image file to the sd card](https://www.raspberrypi.org/documentation/installation/installing-images/linux.md) with `dd`: ```bash -sudo dd bs=4M if=HashiPi-pi1.img of=/dev/sda status=progress conv=fsync +sudo dd bs=4M if=HashiPi-pi0.img of=/dev/sdb status=progress conv=fsync ```