Skip to content

Commit

Permalink
Add systemd-boot timeout til
Browse files Browse the repository at this point in the history
  • Loading branch information
Shourai committed Apr 1, 2024
1 parent 52a20e2 commit 2b36153
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions linux/systemd-boot-timeout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Change systemd-boot timeout

<https://wiki.archlinux.org/title/systemd-boot>

The loader configuration is stored in the file `*esp*/loader/loader.conf`. See [loader.conf(5) § OPTIONS](https://man.archlinux.org/man/loader.conf.5#OPTIONS) for details.

A loader configuration example is provided below:

*esp*/loader/loader.conf

default arch.conf
timeout 4
console-mode max
editor no

**Tip:**

- systemd-boot does not accept tabs for indentation, use spaces instead.
- `default` and `timeout` can be changed in the boot menu itself and changes will be stored as UEFI variables `LoaderEntryDefault` and `LoaderConfigTimeout`, overriding these options.
- `bootctl set-default ""` and `bootctl set-timeout ""` can be used to clear the UEFI variables overriding the `default` and `timeout` options, respectively.
- If you have set `timeout 0`, the boot menu can be accessed by pressing `Space`.
- A basic loader configuration file is located at `/usr/share/systemd/bootctl/loader.conf`.
- If the bootloader (during the entry selection) appears distorted/uses the wrong resolution you can try to set the `console-mode` to `auto` (uses heuristics to select the best resolution), `keep` (keeps the firmware provided resolution) or `2` (tries to select the first non-UEFI-standard resolution).

0 comments on commit 2b36153

Please sign in to comment.