From cedee1c81285411748e20a75840846fc2f7df365 Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Wed, 18 Mar 2020 20:03:13 +0100 Subject: [PATCH] F OpenNebula/one#4089: busybox blkid simplification --- src/usr/sbin/one-contextd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/sbin/one-contextd b/src/usr/sbin/one-contextd index 61a09ed..90d0c17 100755 --- a/src/usr/sbin/one-contextd +++ b/src/usr/sbin/one-contextd @@ -151,7 +151,7 @@ function get_new_context { { blkid -l -t LABEL='CONTEXT' -o device; blkid -t LABEL='CONTEXT' -o device; - blkid | grep "^.*LABEL=[\"\']*CONTEXT[\"\']*" | awk -F ":" '{print $1}'; + blkid | grep "LABEL=['\"]CONTEXT['\"]" | cut -d: -f1; } | grep -v '^/dev/loop' | head -n1 ) elif [[ "$distro" == "BSD" ]]; then