Skip to content

Commit

Permalink
[baseimage]: Install mcelog package to host OS; log machine check exc…
Browse files Browse the repository at this point in the history
…eptions (MCE) to syslog (#3158)

* Install mcelog package to host OS; log machine check exceptions (MCE) to syslog
  • Loading branch information
jleveque authored and lguohan committed Jul 17, 2019
1 parent f409e04 commit fa8b22a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit fa8b22a

Please sign in to comment.