summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-08-06 11:01:20 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-08-06 11:02:13 +0100
commit315b3069a083c89921f8ee44de19c53cea7e3b11 (patch)
treee67cf8483c158e1b3e473a2e8b129215cbcf4ac0
parent98bc29fda446f5c667f4bc799161b3446bfc2ca1 (diff)
downloadlibguestfs-315b3069a083c89921f8ee44de19c53cea7e3b11.tar.gz
libguestfs-315b3069a083c89921f8ee44de19c53cea7e3b11.tar.xz
libguestfs-315b3069a083c89921f8ee44de19c53cea7e3b11.zip
appliance: Include more debug output in the /init script.
Output more debugging information from this script, to enhance the usefulness of LIBGUESTFS_DEBUG output.
-rwxr-xr-xappliance/init17
1 files changed, 12 insertions, 5 deletions
diff --git a/appliance/init b/appliance/init
index dbe53f45..dce59276 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