1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-05-08 17:49:46 +01:00

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
+1 -1
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