diff --git a/.templates/92-local_mounts.sh b/.templates/92-local_mounts.sh index 6996884e2..60dab2c2d 100644 --- a/.templates/92-local_mounts.sh +++ b/.templates/92-local_mounts.sh @@ -28,8 +28,11 @@ if bashio::config.has_value 'localdisks'; then # Mount by device as default devpath=/dev + # Mount as uuid + if [ ${#disk} == 36 ] ; then + devpath=/dev/disk/by-uuid # 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 fi