aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/storage/files/losetup.sh
blob: 8cb9bd7dc93b8b08c3407b8f6e19257dea42ca88 (plain)
1
2
3
4
5
6
7
loop_dev=`losetup -a |grep "/var/storage.img"|awk -F':' '{print $1}'`
if [[ -z $loop_dev ]]; then
  losetup -f --show /var/storage.img
else
  echo $loop_dev
fi