]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commitdiff
mcelog support.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 13 Jan 2011 18:07:44 +0000 (13:07 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 13 Jan 2011 18:07:44 +0000 (13:07 -0500)
root_image/Makefile
root_image/etc/init.d/rcS

index 1247e61f219a9c9d0539357e47ac528d44898c68..9027a56bd41ae679490d5c662d7596f3b437c95a 100644 (file)
@@ -350,6 +350,9 @@ add-bins: userspace-prep
        $(call RPM_TO_USERSPACE,./usr/sbin/lsof,$(RPM_DIR)/lsof)
        $(call RPM_TO_USERSPACE,./sbin/dhclient*,$(RPM_DIR)/dhclient)
        $(call RPM_TO_USERSPACE,./usr/bin/idn,$(RPM_DIR)/libidn)
+ifeq ($(RPM_ARCH), x86_64)
+       $(call RPM_TO_USERSPACE,./usr/sbin/mcelog,$(RPM_DIR)/mcelog)
+endif
 
 .PHONY:        add-debug-bins
 add-debug-bins: root_image-tools-install 
index bbdbbd5dff861d946c3c33c1cd8dcfc4bf11d48b..2c3a303d1decbf3f57fa1a6d0796717cc05fcd18 100755 (executable)
@@ -53,6 +53,10 @@ if [ $? == 1 ]; then
        rmmod dump_dma
 fi
 
+if [ `uname -m` == "x86_64" ]; then
+       /usr/sbin/mcelog --daemon
+fi
+
 /etc/init.d/primary_fb stop
 
 NOIBFT=$(boot_parameter 'noibft')