From 87313d3c954fb5b2fa0109e75455d2a849d72a37 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 1 Oct 2026 20:35:15 +0200 Subject: [PATCH] Update entry validation for local mounts script Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .templates/00-local_mounts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/00-local_mounts.sh b/.templates/00-local_mounts.sh index 4248b16932..637d4e178e 100755 --- a/.templates/00-local_mounts.sh +++ b/.templates/00-local_mounts.sh @@ -70,7 +70,7 @@ if bashio::config.has_value 'localdisks'; then devpath=/dev/disk/by-label else hint="" - [[ "$entry" == */* ]] && hint="For a folder, the text before the first '/' must be the disk. " + [[ "$entry" == [!/]*/?* && "$prefix" != dev && "$prefix" != disk ]] && hint="For a folder, the text before the first '/' must be the disk. " bashio::log.fatal "$entry does not match any known physical device, UUID, or label. $hint" continue fi