Closed Forza-tng closed 1 year ago
The image script uses the folowing test
write_log "Ensuring that loop driver is loaded (if necessary)" 2 if [ ! -f /dev/loop-control ]; then
However, -f tests for regular files and not character devices, which loop-control is.
-f
# ls -l /dev/loop-control crw-rw---- 1 root root 10, 237 Jul 15 11:24 /dev/loop-control
Therefore the script should be using -e insteadn
-e
write_log "Ensuring that loop driver is loaded (if necessary)" 2 if [ ! -e /dev/loop-control ]; then
Fixed by #44 using "-c" rather than "-e".
The image script uses the folowing test
However,
-f
tests for regular files and not character devices, which loop-control is.Therefore the script should be using
-e
insteadn