diff --git a/src/usr/sbin/one-contextd b/src/usr/sbin/one-contextd index f0d4c7b..e18c536 100755 --- a/src/usr/sbin/one-contextd +++ b/src/usr/sbin/one-contextd @@ -146,7 +146,7 @@ function vmware_context { function get_new_context { if [[ "$distro" == "Linux" ]]; then - local dev_context=$(blkid -l -t LABEL="CONTEXT" -o device) + local dev_context=$(blkid -t LABEL="CONTEXT" -o device | grep -v '^/dev/loop' | head -n1) elif [[ "$distro" == "BSD" ]]; then local dev_context="/dev/"$(glabel status | grep CONTEXT | awk '{print $3}') fi