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

Arnaud Patard (Rtp) arnaud.patard at rtp-net.org
Tue Nov 24 14:57:54 GMT 2020


Package: grub-pc
Version: 2.04-10
Severity: normal

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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub_add_menuentry_opts.patch
Type: text/x-diff
Size: 2480 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20201124/d5f47054/attachment.patch>


More information about the Pkg-grub-devel mailing list