Update hdd_image.sh

This commit is contained in:
Pascal Vizeli
2018-04-16 18:31:31 +02:00
committed by GitHub
parent 430fd64123
commit 709fa1181a

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'/' -f1)"
local loop_dev="/dev/mapper/$(losetup -f | cut -d'/' -f3)"
# Write new image & GPT
dd if=/dev/zero of=${hdd_img} bs=${IMAGE_SIZE} count=1