Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit cedee1c

Browse files
author
Vlastimil Holer
committed
F OpenNebula/one#4089: busybox blkid simplification
1 parent 46ae040 commit cedee1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/usr/sbin/one-contextd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function get_new_context {
151151
{
152152
blkid -l -t LABEL='CONTEXT' -o device;
153153
blkid -t LABEL='CONTEXT' -o device;
154-
blkid | grep "^.*LABEL=[\"\']*CONTEXT[\"\']*" | awk -F ":" '{print $1}';
154+
blkid | grep "LABEL=['\"]CONTEXT['\"]" | cut -d: -f1;
155155
} | grep -v '^/dev/loop' | head -n1
156156
)
157157
elif [[ "$distro" == "BSD" ]]; then

0 commit comments

Comments
 (0)