mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-12 19:01:02 +01:00
Allow mounting by physical address for nvme
https://github.com/alexbelgium/hassio-addons/issues/372
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user