Update hassio-expand

This commit is contained in:
Pascal Vizeli 2018-04-17 18:53:45 +02:00 committed by GitHub
parent 15ddab54c7
commit e65af2344c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
#!/bin/sh
set -e
DEVICE_CHILD=$(findfs NAME="hassio-data")
DEVICE_CHILD=$(findfs LABEL="hassio-data")
DEVICE_ROOT="/dev/$(lsblk -no pkname ${DEVICE_CHILD})"
LAST_FREE_SECTOR=$(sgdisk -E ${DEVICE_ROOT})