Skip to content

Commit

Permalink
F OpenNebula/one#4089: busybox blkid simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlastimil Holer committed Mar 18, 2020
1 parent 46ae040 commit cedee1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/sbin/one-contextd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cedee1c

Please sign in to comment.