Fix suppressing kpartx error

This commit is contained in:
Balint Reczey 2017-08-30 16:46:47 +02:00
parent 9ecbce203c
commit 4d72521491
2 changed files with 2 additions and 2 deletions

2
debian/changelog vendored
View File

@ -1,6 +1,6 @@
livecd-rootfs (2.452) UNRELEASED; urgency=medium
*
* Fix suppressing kpartx error
-- Balint Reczey <rbalint@ubuntu.com> Tue, 29 Aug 2017 16:18:36 +0200

View File

@ -19,7 +19,7 @@ clean_loops() {
kpartx_stdout=$(kpartx -v -d "${backing_img}") || kpartx_ret=$?
echo "$kpartx_stdout"
if [ -n "$kpartx_ret" ]; then
if echo "$kpartx_stdout" | grep -q "loop deleted: "; then
if echo "$kpartx_stdout" | grep -q "loop deleted"; then
echo "Suppressing kpartx returning error (#860894)"
else
exit $kpartx_ret