issue 1841/S15: place the fallback kernel's boot entry from the loader the machine booted with

ADR 0508 §9 and §10: systemd-boot gets an entry from the booted command line, GRUB a regenerated menu only when its kernels change, a found kernel-copying hook is taken over, a full boot partition fails loudly.
This commit is contained in:
2026-10-22 14:26:59 +02:00
parent 802c72e4ed
commit 0f4e631cdd
6 changed files with 421 additions and 1 deletions
@@ -24,7 +24,7 @@ func TestTheDefaultIsMadviseAndTheUnitFollowsTheSetting(t *testing.T) {
for _, r := range m.Resources {
ids = append(ids, r["id"].(string))
}
if strings.Join(ids, " ") != "state huge-pages unit apply" {
if strings.Join(ids, " ") != "state huge-pages unit apply boot-entries boot-unit boot-hook boot-apply" {
t.Fatalf("order: %v", ids)
}
script := m.resource(t, "huge-pages")