Allow mounting by physical address for nvme

https://github.com/alexbelgium/hassio-addons/issues/372
This commit is contained in:
Alexandre
2022-06-23 14:55:00 +02:00
committed by GitHub
parent 05f4092ba5
commit 57e41a6484

View File

@@ -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"