From 281d75c9457673aac5a9d190a5f4e97d0e60c5ee Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 15 Aug 2018 11:45:27 +0100 Subject: [PATCH] aws: Execute reboot when an update requires one Signed-off-by: Michael Tremer --- src/initscripts/helper/aws-setup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/initscripts/helper/aws-setup b/src/initscripts/helper/aws-setup index fbf63a1ab0..3dbdfe3fc6 100644 --- a/src/initscripts/helper/aws-setup +++ b/src/initscripts/helper/aws-setup @@ -120,6 +120,12 @@ import_aws_configuration() { # Install all available updates pakfire update && pakfire upgrade -y + # If an update requires a reboot, we will do it + if [ -e "/var/run/need_reboot" ]; then + reboot + exit 1 + fi + # Download user-data local user_data="$(get user-data)" -- 2.39.5