live-build/functions: add additional debugging to mount_image() on failure since we again have loop partitions failing to be block devices.

This commit is contained in:
Steve Langasek 2023-12-03 21:38:08 -08:00
parent a2e35e06d8
commit 220e563de3
2 changed files with 5 additions and 0 deletions

4
debian/changelog vendored
View File

@ -12,6 +12,10 @@ livecd-rootfs (24.04.7) UNRELEASED; urgency=medium
[ Simon Poirier ]
* add systemd-resolved back to buildd images. LP: #2007419.
[ Steve Langasek ]
* live-build/functions: add additional debugging to mount_image() on
failure since we again have loop partitions failing to be block devices.
-- Dave Jones <dave.jones@canonical.com> Mon, 02 Oct 2023 15:46:06 +0100
livecd-rootfs (24.04.6) noble; urgency=medium

View File

@ -73,6 +73,7 @@ mount_image() {
rootfs_dev_mapper="${loop_device}p${rootpart}"
if [ ! -b "${rootfs_dev_mapper}" ]; then
echo "${rootfs_dev_mapper} is not a block device";
ls -l ${loop_device}p*
exit 1
fi