dm:dm-shutdown.sh: silence all disassembly until the last try

master
Harald Hoyer 2018-02-12 09:15:55 +01:00
parent 94f61235d7
commit 1779aee72c
1 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,11 @@ _do_dm_shutdown() {
info "Disassembling device-mapper devices"
for dev in /sys/block/dm-* ; do
[ -e ${dev} ] || continue
if [ "x$final" != "x" ]; then
_remove_dm ${dev##*/} || ret=$?
else
_remove_dm ${dev##*/} >/dev/null 2>&1 || ret=$?
fi
done
if [ "x$final" != "x" ]; then
info "dmsetup ls --tree"