Skip to content

Commit

Permalink
call losetup with -P, Closes: #1010593
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed May 25, 2022
1 parent 61a5d6d commit fc65fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/fai-diskimage
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ fi
# create empty disk image, loop setup, temp mount point
rm -f $rawname
qemu-img create $rawname $size
loop=$(losetup -f --show $rawname)
loop=$(losetup -P -f --show $rawname)
loopdev=${loop/\/dev\//}
export disklist=$loopdev
mnt=$(mktemp -d -t fai-diskimage.XXXXXX)
Expand Down

0 comments on commit fc65fc7

Please sign in to comment.