Commit 954c7bfe authored by Angus Ainslie (Purism)'s avatar Angus Ainslie (Purism)
Browse files

build-image: use the full path to losetup



Sync the filesystem and use the full losetup path to make the loop
device detach more reliable.
Signed-off-by: default avatarAngus Ainslie (Purism) <angus@akkea.ca>
parent be100160
......@@ -233,7 +233,8 @@ if [ "${arch}" == "arm64" ]; then
# Merge boot image inside the main image
loop=$(setup_loop "${mainimg}")
sudo dd if="files/uboot-${uboot_type}/${uboot_type}-boot.img" of="${loop}" bs=1024 seek=2
sudo losetup -d "${loop}"
sudo sync
sudo /sbin/losetup -d "${loop}"
fi
fi
......
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