From 57e41a6484c30b1f71d1ed84f1ffdc4e006a10ab Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 23 Jun 2022 14:55:00 +0200 Subject: [PATCH] Allow mounting by physical address for nvme https://github.com/alexbelgium/hassio-addons/issues/372 --- .templates/92-local_mounts.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.templates/92-local_mounts.sh b/.templates/92-local_mounts.sh index b492e7587..b55a16f18 100644 --- a/.templates/92-local_mounts.sh +++ b/.templates/92-local_mounts.sh @@ -19,7 +19,9 @@ if bashio::config.has_value 'localdisks'; then devpath=/dev # Mount as label - [ "${disk:0:2}" != "sd" ] && devpath=/dev/disk/by-label + if [ "${disk:0:2}" != "sd" ] && [ "${disk:0:4}" != "nvme" ] ; then + devpath=/dev/disk/by-label + fi # Creates dir mkdir -p /mnt/"$disk"