Update hdd_image.sh

This commit is contained in:
Pascal Vizeli
2018-04-16 19:04:40 +02:00
committed by GitHub
parent 225e048ab0
commit 2a7d1b2773

View File

@@ -32,7 +32,7 @@ function hassio_hdd_image() {
local data_img="${1}/data.ext4"
local hdd_img="${2}"
local loop_dev="/dev/mapper/$(losetup -f | cut -d'/' -f3)"
local loop_dev=$(losetup -f)
# Write new image & GPT
dd if=/dev/zero of=${hdd_img} bs=${IMAGE_SIZE} count=1