mirror of https://git.48k.eu/ogclient
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.master
parent
07b4bc1fcd
commit
7874323d46
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue