Ensure loop ready

This commit is contained in:
2026-04-27 23:58:56 +08:00
parent dcb4d8d4c6
commit aa57177db0
3 changed files with 75 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
set -euo pipefail
source /utils.sh
/preload-k8s-images.sh || exit 1
export CTL_BIN_LAYER=$( skopeo inspect docker-daemon:localhost/monok8s/node-control:dev | jq -r '.Layers[0] | sub("^sha256:"; "")' )
@@ -197,6 +199,8 @@ sgdisk -o "$IMG" \
-n 3:0:+2560M -t 3:8300 -c 3:rootfsB \
-n 4:0:0 -t 4:8300 -c 4:data
ensure_loop_ready
losetup -D
LOOP=$(losetup --find --show -P "$IMG")
/sync-loop.sh "$LOOP"