Skip to main content

A visual wrapper for efibootmgr

Project description

EfiBootDude

efibootdude presents a visual (curses) interface to efibootmgr which allows editing the bios boot menu and parameters while running Linux.

  • Installation: pipx install efibootdude
  • Prerequisites: install rhboot/efibootmgr
    • For example, on a Debian derived distro, use sudo apt install efibootmgr.

Demo of efibootdude

efibootdude covers the most commonly used capabilities of efibootmgr; you can:

  • reorder, enable/disable, copy, and remove boot entries
  • choose what to boot on the next reboot (BootNext)
  • set the timeout before auto-booting
  • save your changes and reboot

Note: Copying a boot entry effectively adds a new entry with a different label. For more esoteric uses of efibootmgr (like setting custom boot variables), use efibootmgr directly.

Usage

After running efibootdude and making some changes, you'll see a screen comparable to this:

 wRITE down next tag *:inact copy rmv [v]erbose [T]heme ?:help quit
──────────────────────────────────────────────────────────────────────────────
   BootNext: ---
   BootCurrent: 0007
   Timeout: 2 seconds
>* 0006 Linux Boot Manager               /dev/nvme0n1p1 \EFI\systemd\systemd-b
 * 0000 Enter Setup                      [Firmware]
 * 0001 NVMe: SAMSUNG MZALQ128HBHQ-000L2 [Auto]
 * 0002 UEFI Shell                       [Firmware]
   +ADD Linux Boot Manager Copy          [pending copy]
 * -RMV Ubuntu                           /boot/efi      \EFI\ubuntu\shimx64.ef

At this point

  • The "current" line starts with > and is highlighted.
  • The top line shows actions for the current line; type the underscored letter to effect its action.
  • Type ? for a more complete explanation of the keys, navigation keys, etc.
    • ALWAYS view the help at least once if unfamiliar with this tool, it navigation, and/or uncertain of keys not shown on top line.
  • With this current line, we can:
    • Type u or d to move it up or down in the boot order.
    • Type t to relabel the boot entry (prompts for new name).
    • Type c to copy the boot entry with a new label (prompts for new name).
    • Type r to remove the boot entry.
    • Type m on the Timeout line to change the boot timeout in seconds.
    • Type T to cycle through available themes.
    • And so forth.
  • The entries with * on the left are active boot entries; toggle whether active by typing * for the corresponding entries.
  • Special status lines at the top:
    • BootNext: shows which entry will boot next (use n to set it, or leave as ---)
    • BootCurrent: shows which entry is currently booted (read-only, set by firmware)
    • Timeout: shows boot timeout in seconds (use m to modify)
  • Special indicators:
    • +ADD shows pending copy operations (press r to cancel before writing)
    • -RMV shows entries marked for removal (press r to undo before writing)
  • Press ESC key to abandon any changes and reload the boot information.
  • When ready to write the changes to the BIOS, enter w.
  • When writing the changes, efibootdude drops out of menu mode so you can verify the underlying commands, error codes, and error messages.
  • After you write changes, type b to reboot, if you wish and the boot menu looks OK.
  • BTW, the top-line keys vary per context; e.g.:
    • w is only shown with pending changes, and
    • b is only shown w/o pending changes.

Caveats - BIOSes Vary in What They Implement Correctly

  • Some operations may not work permanently even though there is no indication from efibootmgr (e.g., on my desktop, I cannot re-label boot entries); copy an entry and later remove the old one as a safe workaround.
  • Some operations may only work (again) after re-booting (e.g., you might find activating an entry does not work, but it does so after a reboot).

About this Project

This project was inspired by Elinvention/efiboots. Relative to that project, the aims of efibootdude are:

  • to be easier to install especially when not in your distro's repos.
  • to clearly present the partition of the boot entries (as a mount point if mounted and, otherwise, the device pathname).
  • to show the underlying commands being run for education, for verification, and for help on investigating issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

efibootdude-2.0.0.tar.gz (777.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

efibootdude-2.0.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file efibootdude-2.0.0.tar.gz.

File metadata

  • Download URL: efibootdude-2.0.0.tar.gz
  • Upload date:
  • Size: 777.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for efibootdude-2.0.0.tar.gz
Algorithm Hash digest
SHA256 68d276e1a57de77ba0d48acfa78a7e59bb4cf5fe2a42b5e9f4d0818409857ca1
MD5 0022970a85d90b3907c73172f9ab89cf
BLAKE2b-256 afcae98308319687d42b08f0c761f94c48f71b3173fd5b3dbd8719d8cb95b9c1

See more details on using hashes here.

File details

Details for the file efibootdude-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: efibootdude-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for efibootdude-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 014a0992ceb3219099a8ab7011216b39967555cef0e0b3ad5d17dba6bcce6ab4
MD5 c7e1a1eea6b61fadc06a2cd04d4f1073
BLAKE2b-256 8afff5c520ea15394be3e66baf0e36f29cc7287af90a770420706d701d761f71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page