Skip to content

Commit fa8b22a

Browse files
jlevequelguohan
authored andcommitted
[baseimage]: Install mcelog package to host OS; log machine check exceptions (MCE) to syslog (#3158)
* Install mcelog package to host OS; log machine check exceptions (MCE) to syslog
1 parent f409e04 commit fa8b22a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build_debian.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
249249
mtr-tiny \
250250
locales \
251251
flashrom \
252-
cgroup-tools
252+
cgroup-tools \
253+
mcelog
253254

254255
#Adds a locale to a debian system in non-interactive mode
255256
sudo sed -i '/^#.* en_US.* /s/^#//' $FILESYSTEM_ROOT/etc/locale.gen && \
@@ -380,6 +381,9 @@ set /files/etc/sysctl.conf/net.core.rmem_max 2097152
380381
set /files/etc/sysctl.conf/net.core.wmem_max 2097152
381382
" -r $FILESYSTEM_ROOT
382383

384+
# Configure mcelog to log machine checks to syslog
385+
sudo sed -i 's/^#syslog = yes/syslog = yes/' $FILESYSTEM_ROOT/etc/mcelog/mcelog.conf
386+
383387
## docker-py is needed by Ansible docker module
384388
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT easy_install pip
385389
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install 'docker-py==1.6.0'

0 commit comments

Comments
 (0)