The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/8177
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) ===
From 57f2d3f8c342636a5ef59502d92475dbffc99158 Mon Sep 17 00:00:00 2001 From: Thomas Hipp <thomas.h...@canonical.com> Date: Mon, 23 Nov 2020 17:15:33 +0100 Subject: [PATCH] lxd-agent: Don't rely on systemd for rebooting Signed-off-by: Thomas Hipp <thomas.h...@canonical.com> --- lxd-agent/main_agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd-agent/main_agent.go b/lxd-agent/main_agent.go index 4d826813aa..d3e7585fe9 100644 --- a/lxd-agent/main_agent.go +++ b/lxd-agent/main_agent.go @@ -98,7 +98,7 @@ func (c *cmdAgent) Run(cmd *cobra.Command, args []string) error { } } - shared.RunCommand("systemctl", "reboot") + shared.RunCommand("reboot") // Wait up to 5min for the reboot to actually happen, if it doesn't, then move on to allowing connections. time.Sleep(300 * time.Second)
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel