From 5a8f775db48bb288722487d6f006b989cef3fff0 Mon Sep 17 00:00:00 2001 From: digimer Date: Thu, 28 Sep 2023 18:23:57 -0400 Subject: [PATCH] Removed the reboot job at the end of anvil-configure-host. Signed-off-by: digimer --- tools/anvil-configure-host | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/tools/anvil-configure-host b/tools/anvil-configure-host index e78a9dd8..381369c7 100755 --- a/tools/anvil-configure-host +++ b/tools/anvil-configure-host @@ -110,20 +110,21 @@ $anvil->nice_exit({exit_code => 0}); sub do_reboot { my ($anvil) = @_; - - # Mark that a reboot is needed, in case something kills us before we actually reboot. - $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "log_0687", variables => { reason => "#!string!log_0693!#" }}); - my ($job_uuid) = $anvil->Database->insert_or_update_jobs({ - file => $THIS_FILE, - line => __LINE__, - job_command => $anvil->data->{path}{exe}{'anvil-manage-power'}." --reboot -y".$anvil->Log->switches, - job_data => "", - job_name => "reboot::system", - job_title => "job_0009", - job_description => "job_0006", - job_progress => 0, - }); - $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { job_uuid => $job_uuid }}); + +### TODO: Nothing should be killing us, anything that could should be updated to hold while we run. +# # Mark that a reboot is needed, in case something kills us before we actually reboot. +# $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "log_0687", variables => { reason => "#!string!log_0693!#" }}); +# my ($job_uuid) = $anvil->Database->insert_or_update_jobs({ +# file => $THIS_FILE, +# line => __LINE__, +# job_command => $anvil->data->{path}{exe}{'anvil-manage-power'}." --reboot -y".$anvil->Log->switches, +# job_data => "", +# job_name => "reboot::system", +# job_title => "job_0009", +# job_description => "job_0006", +# job_progress => 0, +# }); +# $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { job_uuid => $job_uuid }}); my $time_left = 60; while ($time_left)