Fix suppression of kpartx error. LP: #1684090.

core-include-dmsetup
Steve Langasek 7 years ago
parent 314a6b95a3
commit 3fdf3933ed

3
debian/changelog vendored

@ -19,6 +19,9 @@ livecd-rootfs (2.408.15) UNRELEASED; urgency=medium
interesting bind-mounts under /dev (e.g. loop devices bind-mounted by interesting bind-mounts under /dev (e.g. loop devices bind-mounted by
LXD). LP: #1716465. LXD). LP: #1716465.
[ Balint Reczey ]
* Fix suppression of kpartx error. LP: #1684090.
-- Steve Langasek <steve.langasek@ubuntu.com> Wed, 23 Aug 2017 17:35:40 -0700 -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 23 Aug 2017 17:35:40 -0700
livecd-rootfs (2.408.14) xenial; urgency=medium livecd-rootfs (2.408.14) xenial; urgency=medium

@ -21,7 +21,7 @@ clean_loops() {
kpartx_stdout=$(kpartx -v -d "${backing_img}") || kpartx_ret=$? kpartx_stdout=$(kpartx -v -d "${backing_img}") || kpartx_ret=$?
echo "$kpartx_stdout" echo "$kpartx_stdout"
if [ -n "$kpartx_ret" ]; then 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)" echo "Suppressing kpartx returning error (#860894)"
else else
exit $kpartx_ret exit $kpartx_ret

Loading…
Cancel
Save