machine_setup/ansible/roles/base/files/mount_disk_image
2022-10-28 01:10:07 -04:00

9 lines
246 B
Bash

#!/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"