Update hdd_image.sh

This commit is contained in:
Pascal Vizeli 2018-04-16 19:23:52 +02:00 committed by GitHub
parent 2a7d1b2773
commit 241b4d2cbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ function hassio_hdd_image() {
local data_img="${1}/data.ext4"
local hdd_img="${2}"
local loop_dev=$(losetup -f)
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