birth/tools/loopback_start.sh
David Gonzalez Martin 0709f980af first commit
2023-07-09 11:24:30 -06:00

7 lines
143 B
Bash
Executable File

#!/bin/sh
# $1 = Disk image
# $2 = Loopback device
set -e
#echo "Starting loopback device $2 with image $1..."
sudo losetup -Pf --show $1 > $2