From 12b84d29eab0327e0e7a3e555d9ce328311dc1ef Mon Sep 17 00:00:00 2001 From: Spand0x Date: Fri, 30 Sep 2022 23:27:56 +0300 Subject: [PATCH] Adding local mounting option by uuid --- .templates/92-local_mounts.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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