mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-20 21:13:36 +08:00
make-recovery-images: Attempt to avoid orphaned loopback devices
This commit is contained in:
@@ -47,7 +47,10 @@ EOF
|
||||
mount "${LOOP}" fs
|
||||
cp -v files/* fs
|
||||
sync
|
||||
sleep 5
|
||||
umount fs
|
||||
# Delay before calling kpartx otherwise it's sometimes possible to get orphaned loopback devices
|
||||
sleep 5
|
||||
kpartx -dv temp.img
|
||||
)
|
||||
mkdir -p images
|
||||
@@ -60,3 +63,4 @@ EOF
|
||||
rm "images/${img}"
|
||||
chown "${SUDO_UID}:${SUDO_GID}" "images/${src}"
|
||||
done
|
||||
echo "Wrote images for rpi-imager to $(pwd)/images/${src}"
|
||||
|
||||
Reference in New Issue
Block a user