We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1519e8e commit 7c48f20Copy full SHA for 7c48f20
1 file changed
src/common.sh
@@ -155,8 +155,10 @@ function mount_image() {
155
# mount root and boot partition
156
157
detach_all_loopback $image_path
158
+ sudo losetup -f
159
sudo mount -o loop,offset=$root_offset $image_path $mount_path/
160
if [[ "$boot_partition" != "$root_partition" ]]; then
161
162
sudo mount -o loop,offset=$boot_offset,sizelimit=$( expr $root_offset - $boot_offset ) $image_path $mount_path/boot
163
fi
164
sudo mkdir -p $mount_path/dev/pts
0 commit comments