Skip to content

composefs: systemd-boot "timeout 5" is never written, bootctl install already created loader.conf #2558

Description

@vonbloom

Environment: same as above (bootc 1.17.1, composefs, --bootloader systemd, systemd 262).

What happens: after the install loader/loader.conf on the ESP contains only systemd's commented template (#timeout 3, #console-mode keep), so the timeout is 0 and the boot menu is never shown: the rollback entry cannot be picked unless one knows to press a key at the right moment.

Why: bootc writes timeout 5 only when the file does not exist,

// Write the timeout for bootloader menu if not exists
if !esp_dir.exists(SYSTEMD_LOADER_CONF_PATH) {
esp_dir
.atomic_write(SYSTEMD_LOADER_CONF_PATH, SYSTEMD_TIMEOUT)
.with_context(|| format!("Writing to {SYSTEMD_LOADER_CONF_PATH}"))?;
}

but bootctl install, run earlier in the same install, has already created loader.conf from its template.

Suggestion: write the timeout after bootctl install regardless of the file's existence at install time (e.g. when the file has no active timeout line), or pass the setting to bootctl.
We work around it by writing loader.conf ourselves after bootc install.

Activity

  1. added a commit that references this issue on Oct 14, 2026
    2d7503a
  2. added 2 commits that reference this issue on Oct 28, 2026
    ff6eb92
    503f869
  3. cgwalters commented on Oct 30, 2026

    @cgwalters
    Member

    Yes this has to be configurable from the image and not hardcoded in bootc.

    That said too, any installer program can wrap bootc install to-filesystem and configure this how it wants too.

    The linked PR gives us a model to configure it in the strictly opinionated to-disk flow though.

  4. added a commit that references this issue on Nov 3, 2026
    cbd3424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions