diff --git a/podman-update/00-podman-update.sh b/podman-update/01-podman-update.sh similarity index 93% rename from podman-update/00-podman-update.sh rename to podman-update/01-podman-update.sh index cb9b2be..bc4ea43 100644 --- a/podman-update/00-podman-update.sh +++ b/podman-update/01-podman-update.sh @@ -10,14 +10,14 @@ RUNC_DL=/mnt/data/.cache/runc-$RUNC_VERSION CONMON_DL=/mnt/data/.cache/conmon-$CONMON_VERSION SECCOMP=/usr/share/container/seccomp.json -if [ ! -f CONMON_DL ]; then +while [ ! -f $CONMON_DL ]; do curl -fsSLo $CONMON_DL https://github.com/containers/conmon/releases/download/v$CONMON_VERSION/conmon.arm64 -fi + sleep 1 +done chmod +x $CONMON_DL if [ ! -f /usr/libexec/podman/conmon.old ]; then mv /usr/libexec/podman/conmon /usr/libexec/podman/conmon.old fi - ln -s $CONMON_DL /usr/libexec/podman/conmon if [ ! -f $PODMAN_DL ]; then diff --git a/podman-update/README.md b/podman-update/README.md index d35340e..48789bf 100644 --- a/podman-update/README.md +++ b/podman-update/README.md @@ -23,7 +23,7 @@ minecraft_1 | [init] Starting the Minecraft server... ## Customization -* You can not expose the docker daemon by commenting out the podman service in [00-podman-update.sh](00-podman-update.sh) +* You can not expose the docker daemon by commenting out the podman service in [00-podman-update.sh](01-podman-update.sh) ## Podman Build Process * This is a custom-built binary by me. It was cross compiled on Ubuntu-20.04 in WSL2. @@ -40,11 +40,11 @@ make CC="aarch64-linux-gnu-gcc" local-cross ``` ## Steps -1. Copy [00-podman-update.sh](00-podman-update.sh) to /mnt/data/on_boot.d +1. Copy [01-podman-update.sh](01-podman-update.sh) to /mnt/data/on_boot.d. Make sure anything needed to enable internet connectivity (wpa-supplicant, eap-proxy) runs before it 1. Comment out the Podman service if you do not wish to expose the Docker/Podman Daemon 1. Copy [05-install-cni-plugins.sh](../cni-plugins/05-install-cni-plugins.sh) to /mnt/data/on_boot.d 1. Recommended: Copy [05-container-common.sh](../container-common/on_boot.d/05-container-common.sh) to /mnt/data/on_boot.d -1. Execute /mnt/data/on_boot.d/[00-podman-update.sh](00-podman-update.sh) and /mnt/data/on_boot.d/[05-install-cni-plugins.sh](../cni-plugins/05-install-cni-plugins.sh) +1. Execute /mnt/data/on_boot.d/[01-podman-update.sh](01-podman-update.sh) and /mnt/data/on_boot.d/[05-install-cni-plugins.sh](../cni-plugins/05-install-cni-plugins.sh) 1. Verify Podman version ```sh $ podman version