How to reboot directly from a usb device?

It’s possible on a UEFI machine.
Use

$ sudo efibootmgr --bootnext XXXX

where XXXX is the boot entry of your usb device. To get a list of all available entries:

$ efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0002,0001,2002,2003,2001
Boot0000* manjaro
Boot0001* EFI PXE 0 for IPv4 (80-FA-5B-8C-59-E9) 
Boot0002* Arch Linux EFISTUB
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

So this would amount to

$ sudo efibootmgr --bootnext 2001 && systemctl reboot

on this machine.

3 Likes