Fix suppression of kpartx error. LP: #1684090.

ubuntu/zesty
Steve Langasek 7 years ago
parent af5510caf9
commit 91bde498cb

3
debian/changelog vendored

@ -5,6 +5,9 @@ livecd-rootfs (2.441.5) UNRELEASED; urgency=medium
interesting bind-mounts under /dev (e.g. loop devices bind-mounted by
LXD). LP: #1716465.
[ Balint Reczey ]
* Fix suppression of kpartx error. LP: #1684090.
-- Steve Langasek <steve.langasek@ubuntu.com> Mon, 11 Sep 2017 11:47:53 -0700
livecd-rootfs (2.441.4) zesty; urgency=medium

@ -21,7 +21,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

Loading…
Cancel
Save