From d7c70665de5fff3afa3f47b6a5f78b82097c3870 Mon Sep 17 00:00:00 2001 From: pavel-shirshov Date: Wed, 15 Mar 2017 18:38:55 -0700 Subject: [PATCH] [baseimage]: Add kexec-tools package into the baseimage (#397) * Include kexec-tools package which could be used for fast reboot * Use sudo for sed --- build_debian.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build_debian.sh b/build_debian.sh index 85126bf34e89..46cb4bce5259 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -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*