primary_sort_key

Function primary_sort_key 

Source
pub(crate) fn primary_sort_key(os_id: &str) -> String
Expand description

Generate sort key for the primary (new/upgraded) boot entry. Format: bootc-{id}-0 Systemd-boot sorts ascending by sort-key, so “0” comes first. Grub ignores sort-key and uses filename/version ordering.