HomeVyOS Platform

grub: T4548: Fixed configuration files order

Description

grub: T4548: Fixed configuration files order

To iterate files on ext* file systems GRUB reads their inodes one by one,
ignoring names. This breaks our configuration logic that relies on proper
loading order.

This commit adds a helper sort_inodes() that needs to be used whenever GRUB
configuration files are created. It recreates files, changing their inodes in a
way where inodes order matches alphabetical order.

Details

Provenance
zsdcAuthored on Mar 12 2024, 10:40 PM
Parents
rVYOSONEXa4e21377271c: Merge pull request #3120 from lucasec/t6114
Branches
Loading...
Tags
Loading...