#898587 grub-pc: Adding code for toggling 'serial console' and 'multiboot' memtest86+ menu entries on and off

Package:
grub-pc
Source:
grub2
Description:
GRand Unified Bootloader, version 2 (PC/BIOS version)
Submitter:
Martin Teufel
Date:
2021-12-19 20:48:04 UTC
Severity:
wishlist
Tags:
#898587#5
Date:
2018-05-13 23:15:00 UTC
From:
To:
When installing the memtest86+ package, four GRUB menu entries get added nowadays:
memtest86+
memtest86+, serial console 115200
memtest86+, experimental multiboot
memtest86+, serial console 115200, experimental multiboot

In order to reduce that, I've added two variables and some if-statements to /etc/grub.d/20_memtest86+.

In /etc/default/grub:
GRUB_MEMTEST_ENABLE_SERIAL=[true|false]
GRUB_MEMTEST_ENABLE_MULTIBOOT=[true|false]

In addition, I've added a variable holding the memtest86+ serial params:
GRUB_MEMTEST_SERIAL_PARAMS="ttyS0,115200n8"

In /etc/grub.d/20_memtest86+:
 Have a look at the diff file.

I think it would be nice if this would make it into upstream.

#898587#10
Date:
2018-05-14 13:53:49 UTC
From:
To:
Dear package maintainer or DBS admin,

I've realised that I've filed this bugreport against the wrong package.
I've filed a new one against memtest86+, so you may delete this one
here.
I'm sorry for the caused inconvenience.

#898587#15
Date:
2021-12-19 11:08:38 UTC
From:
To:
Hi, is right opened here because is not enought patch memtest86+ (that
I'm trying to improve recently
https://salsa.debian.org/fantu-guest/memtest86plus/-/commits/debian/experimental)
but is needed also a patch in grub2 in /etc/default/grub and
grub-mkconfig, or at least grub-mkconfig to make it working.

This is something that would be very useful as I have seen on dozens of
computers (or more) over the years, I had workaround for now with "chmod
-x /etc/grub.d/20_memtest86+" when needed but is not optimal

can be considered adding option to at least disable memtest in grub2
please? if yes I'll prepare and test patches for both grub2 and memtest86+

thanks for any reply and sorry for my bad english

#898587#20
Date:
2021-12-19 20:45:23 UTC
From:
To:
Found a way to disable creation of memtest entries without touch grub2:

https://salsa.debian.org/fantu-guest/memtest86plus/-/commit/554a0c278d6c24f436a781b3dd5faedd873d1c09

For now I keep this bug assigned on grub2 if someone want to implement
it better by modifying also grub2 package