gh-138: Run contextualization only from CDROM

pull/140/head
Vlastimil Holer 6 years ago
parent 0d91699631
commit 648bf7860a
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -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

Loading…
Cancel
Save