From 1ce4a2a520336ce4fe618e3597af95e6c20f99bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 16:33:30 +0000 Subject: [PATCH 1/2] Initial plan From 8970e8a689d035b7eda8137743796f75cb8b1eec Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 15 Apr 2026 16:35:43 +0000 Subject: [PATCH 2/2] fix: call reboot binary directly and drop reboot oneshot unit Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/1d9cb014-ee8b-44f1-9638-67e38cc2417b Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- app/sovran_systemsos_web/server.py | 6 ++---- modules/core/sovran-hub.nix | 8 -------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/app/sovran_systemsos_web/server.py b/app/sovran_systemsos_web/server.py index 3a6cbec..19d792b 100644 --- a/app/sovran_systemsos_web/server.py +++ b/app/sovran_systemsos_web/server.py @@ -77,8 +77,6 @@ NJALLA_SCRIPT = "/var/lib/njalla/njalla.sh" INTERNAL_IP_FILE = "/var/lib/secrets/internal-ip" ZEUS_CONNECT_FILE = "/var/lib/secrets/zeus-connect-url" -REBOOT_UNIT = "sovran-hub-reboot.service" - ONBOARDING_FLAG = "/var/lib/sovran/onboarding-complete" AUTOLAUNCH_DISABLE_FLAG = "/var/lib/sovran/hub-autolaunch-disabled" @@ -2054,7 +2052,7 @@ async def api_upgrade_to_server(): # and ports first via the onboarding wizard. Reboot so onboarding runs. try: proc = await asyncio.create_subprocess_exec( - "/run/current-system/sw/bin/systemctl", "start", "--no-block", REBOOT_UNIT, + "/run/current-system/sw/bin/reboot", stdout=asyncio.subprocess.DEVNULL, stderr=asyncio.subprocess.DEVNULL, ) @@ -2887,7 +2885,7 @@ async def api_ping(): async def api_reboot(): try: proc = await asyncio.create_subprocess_exec( - "/run/current-system/sw/bin/systemctl", "start", "--no-block", REBOOT_UNIT, + "/run/current-system/sw/bin/reboot", stdout=asyncio.subprocess.DEVNULL, stderr=asyncio.subprocess.DEVNULL, ) diff --git a/modules/core/sovran-hub.nix b/modules/core/sovran-hub.nix index 9bae98b..c7e70ba 100644 --- a/modules/core/sovran-hub.nix +++ b/modules/core/sovran-hub.nix @@ -380,14 +380,6 @@ in }; }; - systemd.services.sovran-hub-reboot = { - description = "Sovran_SystemsOS Reboot"; - serviceConfig = { - Type = "oneshot"; - ExecStart = "/run/current-system/sw/bin/systemctl reboot"; - }; - }; - environment.systemPackages = [ sovran-hub-web ]; networking.firewall.allowedTCPPorts = [ 8937 60847 ];