mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-28 07:26:28 +00:00
Update hdd_image.sh
This commit is contained in:
parent
2a7d1b2773
commit
241b4d2cbe
@ -32,7 +32,7 @@ function hassio_hdd_image() {
|
|||||||
local data_img="${1}/data.ext4"
|
local data_img="${1}/data.ext4"
|
||||||
local hdd_img="${2}"
|
local hdd_img="${2}"
|
||||||
|
|
||||||
local loop_dev=$(losetup -f)
|
local loop_dev="/dev/mapper/$(losetup -f | cut -d'/' -f3)"
|
||||||
|
|
||||||
# Write new image & GPT
|
# Write new image & GPT
|
||||||
dd if=/dev/zero of=${hdd_img} bs=${IMAGE_SIZE} count=1
|
dd if=/dev/zero of=${hdd_img} bs=${IMAGE_SIZE} count=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user