Skip to content

Commit

Permalink
add regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Oct 14, 2015
1 parent 4a9a6ab commit 5fab524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple/scripts/LAST/50-misc
Expand Up @@ -12,7 +12,7 @@ if grep -q active /proc/mdstat 2>/dev/null; then
fi
fi

usedm=$(dmsetup ls | egrep -v '^live-rw|^live-base' | wc -l)
usedm=$(dmsetup ls | egrep -v '^live-rw|^live-base|^No devices found' | wc -l)
if [ $usedm -ne 0 ]; then
if [ ! -d $target/etc/lvm ]; then
echo ERROR: Found lvm devices, but the lvm2 package was not installed
Expand Down

0 comments on commit 5fab524

Please sign in to comment.