fix-loopback.sh 268 B

123456789101112
  1. #!/bin/bash
  2. # Loopback crash workaround
  3. # https://github.com/RPi-Distro/pi-gen/issues/104
  4. losetup -D
  5. for i in $(seq 0 5); do
  6. dd if=/dev/zero of=virtualfs$i bs=1024 count=30720
  7. losetup /dev/loop$i virtualfs$i
  8. losetup -d /dev/loop$i
  9. rm virtualfs$i
  10. done