]> git.ipfire.org Git - thirdparty/grub.git/commit
blsuki: Error out if unexpected arguments are supplied master
authorRadoslav Kolev <radoslav.kolev@suse.com>
Fri, 19 Dec 2025 14:25:03 +0000 (16:25 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Sun, 21 Dec 2025 15:41:47 +0000 (16:41 +0100)
commit25b7f6b9344a4bac18c26ce143a156ac2bcb3ec4
tree1de8f8987555957543f2f3eaf2c34961354049c1
parentcfeff5e0718329ad666502c15644fef79625168c
blsuki: Error out if unexpected arguments are supplied

This can be especially helpful, as the Fedora version of the blscfg
actually made use of positional arguments, but current implementation
switched to parameters. For example what used to be "blscfg (hd0,gpt2)/..."
now should be "blscfg --path (hd0,gpt2)/...)". In case of old configs/scripts
still supplying positional arguments we will now error out instead of just
ignoring them and falling back to defaults silently.

Signed-off-by: Radoslav Kolev <radoslav.kolev@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/commands/blsuki.c