From 709fa1181a00022cea84d60db999d8b40ad3d9d2 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Mon, 16 Apr 2018 18:31:31 +0200 Subject: [PATCH] Update hdd_image.sh --- buildroot-external/scripts/hdd_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot-external/scripts/hdd_image.sh b/buildroot-external/scripts/hdd_image.sh index ecf56dceb..f61284d13 100755 --- a/buildroot-external/scripts/hdd_image.sh +++ b/buildroot-external/scripts/hdd_image.sh @@ -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