machine_setup/ansible/roles/base/files/mount_disk_image

9 lines
246 B
Plaintext
Raw Normal View History

2022-10-28 05:10:07 +00:00
#!/usr/bin/env bash
#
# Mount a full-disk image as a loopback device so you can mount individual partitions from inside of it.
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
udisksctl loop-setup -r -f "$1"