--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: Adding code for toggling 'serial console' and 'multiboot' memtest86+ GRUB2 menu entries on and off
- From: Martin Teufel <teufel@cs.uni-frankfurt.de>
- Date: Mon, 14 May 2018 15:44:19 +0200
- Message-id: <20180514134419.14248.99647.reportbug@sakura.lan>
Package: memtest86+
Version: 4.10-1.1
Severity: wishlist
Tags: patch
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 patch file.
-- System Information:
Debian Release: 6.0.10
APT prefers oldoldstable-updates
APT policy: (500, 'oldoldstable-updates'), (500, 'oldoldstable')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-0.bpo.4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages memtest86+ depends on:
ii debconf [debconf-2.0] 1.5.36.1 Debian configuration management sy
memtest86+ recommends no packages.
Versions of packages memtest86+ suggests:
ii grub-pc 1.98+20100804-14+squeeze1 GRand Unified Bootloader, version
pn hwtools <none> (no description available)
pn kernel-patch-b <none> (no description available)
pn memtest86 <none> (no description available)
pn memtester <none> (no description available)
ii mtools 4.0.12-1 Tools for manipulating MSDOS files
-- Configuration Files:
/etc/grub.d/20_memtest86+ changed:
set -e
if [ -f /usr/lib/grub/grub-mkconfig_lib ]; then
. /usr/lib/grub/grub-mkconfig_lib
LX=linux16
elif [ -f /usr/lib/grub/update-grub_lib ]; then
. /usr/lib/grub/update-grub_lib
LX=linux
else
# no grub file, so we notify and exit gracefully
echo "Cannot find grub config file, exiting." >&2
exit 0
fi
case ${GRUB_DEVICE_BOOT} in
/dev/loop/*|/dev/loop[0-9]) exit 0 ;;
esac
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
if test -e /boot/memtest86+.bin ; then
MEMTESTPATH=$( make_system_path_relative_to_its_root "/boot/memtest86+.bin" )
echo "Found memtest86+ image: $MEMTESTPATH" >&2
cat << EOF
menuentry "Memory test (memtest86+)" {
EOF
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
$LX $MEMTESTPATH
}
EOF
if [ "${GRUB_MEMTEST_ENABLE_SERIAL}" = "true" ]; then
cat << EOF
menuentry "Memory test (memtest86+, serial console)" {
EOF
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
$LX $MEMTESTPATH console=${GRUB_MEMTEST_SERIAL_PARAMS}
}
EOF
fi
fi
if [ "${GRUB_MEMTEST_ENABLE_MULTIBOOT}" = "true" ]; then
if test -e /boot/memtest86+_multiboot.bin ; then
MEMTESTPATH=$( make_system_path_relative_to_its_root "/boot/memtest86+_multiboot.bin" )
echo "Found memtest86+ multiboot image: $MEMTESTPATH" >&2
cat << EOF
menuentry "Memory test (memtest86+, experimental multiboot)" {
EOF
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
multiboot $MEMTESTPATH
}
EOF
if [ "${GRUB_MEMTEST_ENABLE_SERIAL}" = "true" ]; then
cat << EOF
menuentry "Memory test (memtest86+, experimental multiboot, serial console)" {
EOF
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
multiboot $MEMTESTPATH console=${GRUB_MEMTEST_SERIAL_PARAMS}
}
EOF
fi
fi
fi
-- debconf information:
shared/memtest86-run-lilo: false
--- 20_memtest86+.orig 2018-05-14 00:52:58.719587898 +0200
+++ 20_memtest86+ 2015-02-18 17:47:52.000000000 +0100
@@ -30,16 +30,21 @@
cat << EOF
$LX $MEMTESTPATH
}
-menuentry "Memory test (memtest86+, serial console 115200)" {
+EOF
+ if [ "${GRUB_MEMTEST_ENABLE_SERIAL}" = "true" ]; then
+ cat << EOF
+menuentry "Memory test (memtest86+, serial console)" {
EOF
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
- $LX $MEMTESTPATH console=ttyS0,115200n8
+ $LX $MEMTESTPATH console=${GRUB_MEMTEST_SERIAL_PARAMS}
}
EOF
+ fi
fi
-if test -e /boot/memtest86+_multiboot.bin ; then
+if [ "${GRUB_MEMTEST_ENABLE_MULTIBOOT}" = "true" ]; then
+ if test -e /boot/memtest86+_multiboot.bin ; then
MEMTESTPATH=$( make_system_path_relative_to_its_root "/boot/memtest86+_multiboot.bin" )
echo "Found memtest86+ multiboot image: $MEMTESTPATH" >&2
cat << EOF
@@ -49,11 +54,16 @@
cat << EOF
multiboot $MEMTESTPATH
}
-menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
+EOF
+ if [ "${GRUB_MEMTEST_ENABLE_SERIAL}" = "true" ]; then
+ cat << EOF
+menuentry "Memory test (memtest86+, experimental multiboot, serial console)" {
EOF
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
-multiboot $MEMTESTPATH console=ttyS0,115200n8
+ multiboot $MEMTESTPATH console=${GRUB_MEMTEST_SERIAL_PARAMS}
}
EOF
+ fi
+ fi
fi
--- End Message ---
--- Begin Message ---
Source: memtest86+
Source-Version: 5.31b+dfsg-1
Done: Fabio Fantoni <fantonifabio@tiscali.it>
We believe that the bug you reported is fixed in the latest version of
memtest86+, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 898636@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Fabio Fantoni <fantonifabio@tiscali.it> (supplier of updated memtest86+ package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sun, 09 Jan 2022 21:41:58 +0100
Source: memtest86+
Architecture: source
Version: 5.31b+dfsg-1
Distribution: experimental
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Fabio Fantoni <fantonifabio@tiscali.it>
Closes: 568176 612371 695246 783515 898636 977217 989030
Changes:
memtest86+ (5.31b+dfsg-1) experimental; urgency=medium
.
[ Fabio Fantoni ]
* QA upload.
* New upstream version 5.31b (Closes: #989030, #977217)
* Merge from ubuntu:
- Use elf version by default that should works on major of system.
- Drop the multiboot image from the GRUB menu for now, since it's
experimental and has known problems detecting all memory on some
systems at the moment.
- Support localization of GRUB menu entries.
- Don't present in GRUB menu on EFI systems, since it won't work.
(Closes: #695246)
- Close FD 3 when invoking update-grub.
* Warn that don't support EFI instead of exit silently (LP: 1863940)
* Don't add grub2 entries if GRUB_DISABLE_MEMTEST=true is present
in /etc/default/grub (LP: #420967)
* Make possible disable serial with GRUB_MEMTEST_DISABLE_SERIAL,
enable multiboot with GRUB_MEMTEST_ENABLE_MULTIBOOT and add
custom serial parameters with GRUB_MEMTEST_SERIAL_PARAMS
(Closes: #898636, #612371)
* Specify on grub2 menu entries when elf and bin are used
* d/control: Remove hwtools and kernel-patch-badram from suggests.
* d/copyright: add Upstream-Name, Upstream-Contact and Source fields
* Bumped Standards-Version to 4.6.0
* d/patches:
- update multiboot patch from coreboot patch based on the one of
Vladimir Serbinenko and refreshed for 5.31b (Closes: #568176)
- refresh memtest86+-5.01-O0.patch
- disable memtest86+-5.01-array-size.patch and gcc-5 as seems not
needed with newer upstream version
- refresh serial-console-fix.patch
- add test-random-cflags.patch: use CFLAGS with random.o for
maintain flags like -fno-stack-protector
- add fix-gcc8-freeze-crash.patch: runtime fix for gcc>=8
freeze/crash
- add discard-note_gnu_property.patch: discards the
".note.gnu.property" section that causes crash in some cases
.
[ Jérémy Bobbio ]
* Make the package build reproducibly:
- Add a patch to make ISO image reproducible.
- Set the build date to the latest debian/changelog entry in
debian/rules. (Closes: #783515)
Checksums-Sha1:
ccede9fb94a6db33aa012d3ab4f37ef549ec01ea 1906 memtest86+_5.31b+dfsg-1.dsc
5689804e55318543d881f49b28d3463a85d31d9d 181212 memtest86+_5.31b+dfsg.orig.tar.xz
0e00bc6d73765cd6c13746ae39f0c60da99d3bf0 20996 memtest86+_5.31b+dfsg-1.debian.tar.xz
555993d36a4e1b176380093a2857f01d111c1c30 5440 memtest86+_5.31b+dfsg-1_source.buildinfo
Checksums-Sha256:
b14835245a8975fef057293215d46b4c6be66647b5b4c203b3087f5fc0c2f394 1906 memtest86+_5.31b+dfsg-1.dsc
b31025b00fddd35ec8794cbe832289562cdd9690a5d0062e9ac69eb655e2605f 181212 memtest86+_5.31b+dfsg.orig.tar.xz
709c2962bde409ce9047612f7f7e7d804a31826dce43083938a940b386a9ac48 20996 memtest86+_5.31b+dfsg-1.debian.tar.xz
2e7ecfd18a7eb5f762730f26874c047a0eecd9730675a71c7ed49018dbb30809 5440 memtest86+_5.31b+dfsg-1_source.buildinfo
Files:
900732fd9845aba8044568a1162ccd2d 1906 misc optional memtest86+_5.31b+dfsg-1.dsc
75fdce14981f566e212667008877b889 181212 misc optional memtest86+_5.31b+dfsg.orig.tar.xz
1e7c755130ecc7b56c6ccb46e5196525 20996 misc optional memtest86+_5.31b+dfsg-1.debian.tar.xz
c69e14a34b0dc32e57aa01a26e68b097 5440 misc optional memtest86+_5.31b+dfsg-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmHc15sQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFOUKC/4vnGvlv5n4NxmyKVW95YQppUdpucbnNaMF
jNHMPpOTMIujkvONmoG8GZROqqnzy0OQmAMKjYIJ6GybwvSbLQI7viFqWzcWi7YB
6Hsv97WfVx3cGtP5Mhd3u3FuCf/JGgGIId2EQxm7bgHxy4Vbn7MlEg6OyL5VjPMj
jHaxAVcFY1N4CXDxskQ7qxnpfRCxEmBMqJgdMiyxXkr8yMFJUYGJmYbx5i52kB82
uXvNohdqsK4sSEHbFwzlN151oPXf6S3p5BSKNdT7SNjbtBKUAnRzI6wLDtBKM2I4
8g77TJhW+iwer88TQwzEfZaYM+huELHKKkAoS5oDsMGq4ryXxltmFAlmCW9OPPhM
I/QxP+ZrIB41UkpcoyIR3HwNt/QyDVTec6YCSUUvOqUOAdmVkBSh9zDXdrU9uhgw
S9yEpSpkXbsEeciy+JhMmvjg3vh+pibPhTl7LqKLtElCWA8AXs71ZA0Pwx69caHs
VrDFQ0f1oE2yzvZBSq2NMhg1w4efH+w=
=jkX9
-----END PGP SIGNATURE-----
--- End Message ---