From 9de7358215ca6e3f0b394bacdd97f1e2b119b4b4 Mon Sep 17 00:00:00 2001 From: Jo¶rgen Karlsson Date: Fri, 12 Feb 2016 17:00:30 +0100 Subject: Add more debug to image build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Icfbed0433cb9cfb6f8f479fc69699d08ad49602b Signed-off-by: Jo¶rgen Karlsson --- tools/yardstick-img-modify | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/yardstick-img-modify b/tools/yardstick-img-modify index 94594103a..13d4360d9 100755 --- a/tools/yardstick-img-modify +++ b/tools/yardstick-img-modify @@ -81,7 +81,9 @@ setup() { kpartx -av $raw_imgfile # for trouble shooting - sleep 2; dmsetup ls + sleep 2 + dmsetup ls + fdisk -l /dev/${loopdevice:0:5} || true mount /dev/mapper/$loopdevice $mountdir mount -t proc none $mountdir/proc @@ -136,6 +138,8 @@ error_trap() exitcode=$rc fi + dmesg -T | tail -50 + cleanup echo "Image build failed with $exitcode" -- cgit 1.2.3-korg