F OpenNebula/one#4089: busybox blkid simplification

pull/204/head
Vlastimil Holer 5 years ago
parent 46ae040402
commit cedee1c812
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

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

Loading…
Cancel
Save