From b0ba1ec4ec05f57630d96747e15cc510e27258e8 Mon Sep 17 00:00:00 2001 From: Luca Filipozzi Date: Wed, 9 Aug 2017 16:06:53 +0000 Subject: [PATCH] add some kernel stuff for amd64 --- input/howto/upgrade-to-stretch.mdwn | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/input/howto/upgrade-to-stretch.mdwn b/input/howto/upgrade-to-stretch.mdwn index 8fa665d..a8b4bc3 100644 --- a/input/howto/upgrade-to-stretch.mdwn +++ b/input/howto/upgrade-to-stretch.mdwn @@ -19,7 +19,7 @@ commands: apt-get update && service samhain stop && rm -f /var/state/samhain/samhain_file /var/lib/samhain/samhain_file && - apt-get install dpkg apt samhain && + apt-get install dpkg apt samhain linux-image-amd64 && service samhain stop && apt-get dist-upgrade && rm -f /var/state/samhain/samhain_file /var/lib/samhain/samhain_file && @@ -37,6 +37,10 @@ commands: dpkg --clear-avail && apt-get clean +on amd64, install kernel: + + apt-get install linux-image-amd64 + purge removed packages dpkg --get-selections | awk '$2=="deinstall" {print $1}' && @@ -68,3 +72,11 @@ re-init samhain and finish with a reboot samhain --foreground -t update -p none -s none -l none -m none && dsa-update-apt-status -f && reboot < /dev/null + +consider more cleanup + + apt-get autoremove && + (puppet agent -t || true) && + samhain --foreground -t update -p none -s none -l none -m none && + dsa-update-apt-status -f + -- 2.20.1