[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:
parent
f409e04f17
commit
fa8b22ad93
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user