summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2017-02-10 14:14:21 -0600
committerScott Moser <smoser@ubuntu.com>2017-02-10 14:15:53 -0600
commit65529b6fca5915438612c161c01fe7b57c2a59b1 (patch)
tree7c9aaa42be10d60a04465b271c489fd3e126d35e /tools
parente6098c2cd0a1786ba5b34b603247b4ef644e2312 (diff)
downloadvyos-cloud-init-65529b6fca5915438612c161c01fe7b57c2a59b1.tar.gz
vyos-cloud-init-65529b6fca5915438612c161c01fe7b57c2a59b1.zip
ds-identify: fix checking for filesystem label
has_fs_with_label regressed when refactoring to not have leading and trailing , in DI_FS_LABELS. LP: #1663735
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ds-identify4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ds-identify b/tools/ds-identify
index e454ed6d..3ba36f8f 100755
--- a/tools/ds-identify
+++ b/tools/ds-identify
@@ -386,8 +386,8 @@ dmi_sys_vendor_is() {
}
has_fs_with_label() {
- local label=",$1,"
- case "${DI_FS_LABELS}" in
+ local label="$1"
+ case ",${DI_FS_LABELS}," in
*,$label,*) return 0;;
esac
return 1