Skip to content

Commit

Permalink
Ignore errors from dmsetup
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Hachtkemper authored and Thomas Lange committed Feb 26, 2017
1 parent b123f80 commit ac1b744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple/scripts/LAST/50-misc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else
fi
fi

usedm=$(dmsetup ls | egrep -v '^live-rw|^live-base|^No devices found' | wc -l)
usedm=$(dmsetup ls 2>/dev/null | 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 ac1b744

Please sign in to comment.