Ensure loop ready
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user