From 648bf7860af10f2e097214a3e2d369c0a325a771 Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Wed, 23 Jan 2019 15:00:36 +0100 Subject: [PATCH] gh-138: Run contextualization only from CDROM --- 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 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