Skip to content

Commit

Permalink
[baseimage]: Add kexec-tools package into the baseimage (#397)
Browse files Browse the repository at this point in the history
* Include kexec-tools package which could be used for fast reboot

* Use sudo for sed
  • Loading branch information
pavel-shirshov committed Mar 16, 2017
1 parent 62ddede commit d7c7066
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 @@ -193,7 +193,11 @@ sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y in
pciutils \
iptables-persistent \
logrotate \
curl
curl \
kexec-tools

## Disable kexec supported reboot which was installed by default
sudo sed -i 's/LOAD_KEXEC=true/LOAD_KEXEC=false/' $FILESYSTEM_ROOT/etc/default/kexec

## Remove sshd host keys, and will regenerate on first sshd start
sudo rm -f $FILESYSTEM_ROOT/etc/ssh/ssh_host_*_key*
Expand Down

0 comments on commit d7c7066

Please sign in to comment.