diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-10-24 17:44:50 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-10-24 17:46:37 +0200 |
commit | 7874323d46aa4012569d93b8577dea9ae502229d (patch) | |
tree | 6251f1bfb307e3f73d141f7b60e088da0651f80c /src | |
parent | 07b4bc1fcd46d61a7d0d101baf0a336f37f3f556 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/live/ogOperations.py | 5 |
1 files changed, 4 insertions, 1 deletions
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): |