From 54509dfdef1ccbc484e3ae6de78ec0ca682eb804 Mon Sep 17 00:00:00 2001 From: Seungjae Yoo Date: Fri, 27 Feb 2026 15:10:45 +0900 Subject: [PATCH 1/2] Fix typo on preseed/after_install_1.sh --- gigabyte-ampere-cuttlefish-installer/preseed/after_install_1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gigabyte-ampere-cuttlefish-installer/preseed/after_install_1.sh b/gigabyte-ampere-cuttlefish-installer/preseed/after_install_1.sh index f376239a4d5..4259186369b 100755 --- a/gigabyte-ampere-cuttlefish-installer/preseed/after_install_1.sh +++ b/gigabyte-ampere-cuttlefish-installer/preseed/after_install_1.sh @@ -103,7 +103,7 @@ apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -y -q docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin usermod -aG docker vsoc-01 -# Inastall nvidia-container-toolkit +# Install nvidia-container-toolkit curl -fsSL --retry 7 --retry-all-errors https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /etc/apt/trusted.gpg.d/nvidia-container-toolkit-keyring.gpg \ && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ tee /etc/apt/sources.list.d/nvidia-container-toolkit.list From a9f7281f40eb3b24720a685d1cdf5683b73f5563 Mon Sep 17 00:00:00 2001 From: Seungjae Yoo Date: Fri, 27 Feb 2026 15:10:45 +0900 Subject: [PATCH 2/2] Pull container image on on-premise arm64 image --- .../preseed/after_install_1.sh | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gigabyte-ampere-cuttlefish-installer/preseed/after_install_1.sh b/gigabyte-ampere-cuttlefish-installer/preseed/after_install_1.sh index 4259186369b..5fd29a9ddb6 100755 --- a/gigabyte-ampere-cuttlefish-installer/preseed/after_install_1.sh +++ b/gigabyte-ampere-cuttlefish-installer/preseed/after_install_1.sh @@ -109,3 +109,27 @@ curl -fsSL --retry 7 --retry-all-errors https://nvidia.github.io/libnvidia-conta tee /etc/apt/sources.list.d/nvidia-container-toolkit.list apt-get update DEBIAN_FRONTEND=noninteractive apt-get install -y -q --force-yes nvidia-container-toolkit + +# Find container image tagged with most recent stable version +DEBIAN_FRONTEND=noninteractive apt-get install -y -q --force-yes skopeo +ORCHESTRATION_IMAGE="us-docker.pkg.dev/android-cuttlefish-artifacts/cuttlefish-orchestration/cuttlefish-orchestration" +STABLE_DIGEST=$(skopeo inspect docker://${ORCHESTRATION_IMAGE}:stable --format '{{.Digest}}') +CANDIDATES=$(skopeo list-tags docker://${ORCHESTRATION_IMAGE} | jq -r '.Tags[] | select(test("^[0-9]+\\.[0-9]+\\.[0-9]+$"))' | sort -V -r) +ORCHESTRATION_TAG="" +for CANDIDATE in $CANDIDATES; do + DIGEST=$(skopeo inspect docker://${ORCHESTRATION_IMAGE}:${CANDIDATE} --format '{{.Digest}}') + if [ "$DIGEST" = "$STABLE_DIGEST" ]; then + ORCHESTRATION_TAG=${CANDIDATE} + break + fi +done + +# Run dockerd for a moment and pull container image +mount -t cgroup2 none /sys/fs/cgroup +dockerd >/dev/null 2>&1 & +DOCKER_PID=$! +timeout=10 sh -c 'until [ -S /var/run/docker.sock ]; do sleep 1; done' +docker pull ${ORCHESTRATION_IMAGE}:${ORCHESTRATION_TAG} +kill $DOCKER_PID +wait $DOCKER_PID +umount /sys/fs/cgroup