Verified Commit 43130c81 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Try explicit call to blockdev

We still have the problem where the partition table or device appears too late.
Hopefully this fixes it.
parent 80ae307e
Pipeline #1911 passed with stages
in 24 minutes and 4 seconds
......@@ -59,6 +59,7 @@ function setup_disk() {
LOOPDEV=$(losetup --find --partscan --show "${IMAGE}")
# Partscan is racy
blockdev --rereadpt ${LOOPDEV}
wait_until_exists "${LOOPDEV}p2"
mkfs.btrfs "${LOOPDEV}p2"
mount -o compress-force=zstd "${LOOPDEV}p2" "${MOUNT}"
......@@ -113,6 +114,7 @@ function image_cleanup() {
function mount_image() {
LOOPDEV=$(losetup --find --partscan --show "${1:-${IMAGE}}")
# Partscan is racy
blockdev --rereadpt ${LOOPDEV}
wait_until_exists "${LOOPDEV}p2"
mount -o compress-force=zstd "${LOOPDEV}p2" "${MOUNT}"
# Setup bind mount to package cache
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment