[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
This commit is contained in:
Joe LeVeque 2019-07-17 09:43:05 -07:00 committed by lguohan
parent f409e04f17
commit fa8b22ad93

View File

@ -249,7 +249,8 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
mtr-tiny \
locales \
flashrom \
cgroup-tools
cgroup-tools \
mcelog
#Adds a locale to a debian system in non-interactive mode
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
set /files/etc/sysctl.conf/net.core.wmem_max 2097152
" -r $FILESYSTEM_ROOT
# Configure mcelog to log machine checks to syslog
sudo sed -i 's/^#syslog = yes/syslog = yes/' $FILESYSTEM_ROOT/etc/mcelog/mcelog.conf
## docker-py is needed by Ansible docker module
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT easy_install pip
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT pip install 'docker-py==1.6.0'