Update 00-local_mounts.sh

This commit is contained in:
Alexandre
2023-10-04 18:02:00 +02:00
committed by GitHub
parent 543645e93b
commit 4aff783f54

View File

@@ -9,10 +9,14 @@ set -e
# Mount local Share if configured # Mount local Share if configured
if bashio::config.has_value 'localdisks'; then if bashio::config.has_value 'localdisks'; then
# Available UUID
blkid -s UUID -o value > availabledisks
echo "UUID" >> availabledisks
## List available Disk with Labels and Id ## List available Disk with Labels and Id
bashio::log.blue "---------------------------------------------------" bashio::log.blue "---------------------------------------------------"
bashio::log.info "Available Disks :" bashio::log.info "Available Disks :"
lsblk -o name,label,size,fstype,ro | awk '$4 != "" { print $0 }' lsblk -o name,label,size,fstype,ro,uuid | awk '$4 != "" { print $0 }' | grep -f availabledisks
bashio::log.blue " you cannot mount HAos data partition " bashio::log.blue " you cannot mount HAos data partition "
bashio::log.blue "---------------------------------------------------" bashio::log.blue "---------------------------------------------------"