mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
losetup -f returns the next free loop device, which may not be /dev/loop0. If you blindly follow the readmy you may end up destroying an existing device. Make it more robust with a variable to store the loop device. Signed-off-by: Cherniaev Andrei <dungeonlords789@naver.com> [Arnout: keep the actual losetup atomic] Signed-off-by: Arnout Vandecappelle <arnout@mind.be>