From 7874323d46aa4012569d93b8577dea9ae502229d Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 24 Oct 2024 17:44:50 +0200 Subject: live: use reboot --force --force to make a hard reboot in new live this is a workaround for the new live system to make a hardware reboot that allows UEFI to pick up, otherwise it performs a kernel reboot instead. --- src/live/ogOperations.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/live') diff --git a/src/live/ogOperations.py b/src/live/ogOperations.py index 64e5532..2ae0104 100644 --- a/src/live/ogOperations.py +++ b/src/live/ogOperations.py @@ -362,13 +362,16 @@ class OgLiveOperations: self._enable_wol(interface) if shutil.which('reboot'): busybox = '' + opts = ' --force --force' elif shutil.which('busybox'): busybox = 'busybox ' + opts = '' else: logging.warning('No reboot binary found') busybox = '' + opts = '' - cmd_reboot = shlex.split(f'{busybox}reboot') + cmd_reboot = shlex.split(f'{busybox}reboot{opts}') self._shutdown(interface, cmd_reboot) def reboot(self): -- cgit v1.2.3-18-g5258