Closed trevor-vaughan closed 4 years ago
Perhaps parsing grubenv
would help?
@jcpunk I'm actually working on that now. Luckily, the new rewrite of grubby
is in BASH so I've been able to reverse engineer things.
Unfortunately, it's kind of a hot mess under the hood and we're going to have to support both BLS and old entries to make this thing make any kind of sense.
Also, updating the root disk seems to update it for all BLS entries (it just keeps getting more fun).
@jcpunk PR is up if you want to take a look
Excellent :)
EL8 and Fedora 30+ now use the
blscfg
module to load OS configurations from/boot/loader/entries
. This means that we're going to have to fall back togrubby
for systems that include this module in their/etc/grub2.cfg
configuration until some method can be found to process this information without requiringgrubby
.