mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-04 23:04:09 +02:00
Adding local mounting option by uuid
This commit is contained in:
@@ -28,8 +28,11 @@ if bashio::config.has_value 'localdisks'; then
|
|||||||
# Mount by device as default
|
# Mount by device as default
|
||||||
devpath=/dev
|
devpath=/dev
|
||||||
|
|
||||||
|
# Mount as uuid
|
||||||
|
if [ ${#disk} == 36 ] ; then
|
||||||
|
devpath=/dev/disk/by-uuid
|
||||||
# Mount as label
|
# Mount as label
|
||||||
if [ "${disk:0:2}" != "sd" ] && [ "${disk:0:4}" != "nvme" ] ; then
|
elif [ "${disk:0:2}" != "sd" ] && [ "${disk:0:4}" != "nvme" ] ; then
|
||||||
devpath=/dev/disk/by-label
|
devpath=/dev/disk/by-label
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user