From: Richard Jones Date: Thu, 6 Aug 2009 10:01:20 +0000 (+0100) Subject: appliance: Include more debug output in the /init script. X-Git-Tag: 1.0.66~11 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=315b3069a083c89921f8ee44de19c53cea7e3b11;p=libguestfs.git appliance: Include more debug output in the /init script. Output more debugging information from this script, to enhance the usefulness of LIBGUESTFS_DEBUG output. --- 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