echo "*.* /var/log/messages" >> /etc/syslog.conf
/sbin/syslogd
-if [ `cat /sys/hypervisor/type` == "xen" ]; then
+XEND_LOAD=0
+if [ -e /sys/hypervisor/type ]; then
+ if [ `cat /sys/hypervisor/type` == "xen" ]; then
+ xen-detect -H
+ if [ $? -ne 0 ]; then
+ XEND_LOAD=1
+ fi
+ fi
+fi
+
+if [ $XEND_LOAD -eq 1 ]; then
modprobe evtchn
modprobe xen_evtchn
- /etc/init.d/xencommons start
+ # Xen 4.0 can't deal with xencommons running first
+ if [ `xen-detect | sed -e 's/.*v//' -e 's/\.//g'` != 40 ]; then
+ /etc/init.d/xencommons start
+ fi
/etc/init.d/xend start
rm -f /dev/ttyS0
ln -s /dev/null /dev/ttyS0
lspci
cat /proc/interrupts
cat /proc/iomem
+cat /proc/meminfo
if [ -x /init.late ]; then
action $"Waiting for init.late"