mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Merge pull request #497 from Spand0x/master
Adding local mounting option by uuid
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user