#975643 grub-pc: Allow to set option on grub entries

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Arnaud Patard
Date:
2020-11-24 15:09:04 UTC
Severity:
normal
#975643#5
Date:
2020-11-24 14:57:54 UTC
From:
To:
Dear Maintainer,


I'm using grub with a password set in /etc/grub.d/40_custom:
#!/bin/sh
exec tail -n +3 $0
set superusers="admin"
password_pbkdf2 admin grub.pbkdf2.sha512.....

With this setup, I would have to enter the grub password to boot, so
I've been modifying /etc/grub.d/10_linux by hand to hardcode the option
'--unrestricted' in the default entry for quite some time.

I think it would be better for the long term to get a solution for that
in the grub package.

So, I've just made a patch to allow setting an option in /etc/default/grub
to allow setting options to grub entries. There's one option for the
default entry and one option for the others, as I guess setting the
option per entry for all entry would be quite hard.

Thanks,
Arnaud