Skip to content

Conversation

@codefiles
Copy link
Contributor

No description provided.

@codefiles codefiles requested a review from Torxed as a code owner January 19, 2026 01:25
@codefiles
Copy link
Contributor Author

codefiles commented Jan 19, 2026

A problem here is if more than one kernel is installed there will be multiple "Arch Linux" entries in the menu with the edit option being the only way to distinguish them.

The menu title comes from the PRETTY_NAME in .osrel, see grub-core/commands/blsuki.c:

  /*
   * Although .osrel is listed as optional in the UKI specification, the .osrel
   * section is needed to generate the GRUB menu entry title.
   */
  osrel = blsuki_get_val (entry, ".osrel", NULL);
  if (osrel == NULL)
    {
      grub_dprintf ("blsuki", "Skipping file %s with no '.osrel' key.\n", entry->filename);
      goto finish;
    }

  osrel_line = osrel;
  while ((key = uki_read_osrel (&osrel_line, &value)) != NULL)
    {
      if (grub_strcmp ("PRETTY_NAME", key) == 0)
	{
	  title = value;
	  break;
	}
    }

This could be alleviated by using recall previous entry with the addition of the following command.

grub-editenv /boot/grub/grubenv set blsuki_save_default=true

@svartkanin
Copy link
Collaborator

I suppose that's fine for now and we can improve that in the future

@svartkanin svartkanin merged commit 38462db into archlinux:master Jan 19, 2026
9 checks passed
@codefiles codefiles deleted the grub-uki branch January 20, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants