From 315b3069a083c89921f8ee44de19c53cea7e3b11 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Thu, 6 Aug 2009 11:01:20 +0100 Subject: [PATCH] appliance: Include more debug output in the /init script. Output more debugging information from this script, to enhance the usefulness of LIBGUESTFS_DEBUG output. --- appliance/init | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/appliance/init b/appliance/init index dbe53f4..dce5927 100755 --- a/appliance/init +++ b/appliance/init @@ -34,16 +34,23 @@ else fi modprobe dm_mod ||: -mount -ls -l /dev -/sbin/ifconfig lo 127.0.0.1 -/sbin/ifconfig eth0 10.0.2.10 -/sbin/route add default gw 10.0.2.2 +ifconfig lo 127.0.0.1 +ifconfig eth0 10.0.2.10 +route add default gw 10.0.2.2 lvm vgscan --ignorelockingfailure lvm vgchange -ay --ignorelockingfailure +# Keep these to enhance the usefulness of debug output. +ls -l /dev +lvm pvs +lvm vgs +lvm lvs +ifconfig +netstat -rn +lsmod + # Improve virtio-blk performance (RHBZ#509383). for f in /sys/block/vd*/queue/rotational; do echo 1 > $f; done -- 1.8.3.1