13

Having consulted resources related to the commands available in a UEFI/EFI shell, I cannot find two commands I would expect to be available:

  1. reboot
  2. poweroff, halt, or shutdown

What am I missing here? (can it be that the EFI shell is somewhat overengineered, but lacks basic functionality?)

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
fraleone
  • 253
  • 1
  • 2
  • 8
  • What’s wrong with Ctrl+Alt+Del or pushing the power button? – Daniel B Oct 18 '20 at 09:43
  • 1
    @DanielB I am aware of those options. However most GNU/Linux systems I used came with those handy things like commands like `shutdown`, `poweroff` and `reboot` and would have though the functionality they provide to be mirrored in EFI shell. So what you suggest is that those commands do not exit, is there a reference to that? – fraleone Oct 18 '20 at 10:13

1 Answers1

13

The command reset will do both poweroff and reboot. From the UEFI Shell Specification

reset

Summary

Resets the system.

Usage

reset [-w|-s|-c [string]] [-fwui]

Options

-s

  • Performs a shutdown

-w

  • Performs a warm boot

-c

  • Performs a cold boot

string

  • String to be passed to reset service

-fwui

If the system firmware supports it, perform a reset back to the firmware user interface (FW UI)

Examples

To shut down the system:

Shell> reset -s

To cold reset the system and stop boot at the firmware user interface:

Shell> reset –c -fwui

lx07
  • 2,748
  • 2
  • 17
  • 19