grub, memtest: Add memtest for grub-pc

This commit is contained in:
Anton Midyukov 2021-02-10 00:17:33 +07:00
parent 7de3db560e
commit 1e2a05d9bc
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
if [ "$grub_platform" = "pc" ]; then
menuentry $"Memory Test" --id 'memtest' {
linux16 /syslinux/memtest.bin
}
fi

View File

@ -1,8 +1,9 @@
ifeq (,$(filter-out i586 x86_64,$(ARCH))) ifeq (,$(filter-out i586 x86_64,$(ARCH)))
use/memtest: use/syslinux use/memtest: use/syslinux use/grub
@$(call add_feature) @$(call add_feature)
@$(call add,SYSTEM_PACKAGES,memtest86+) @$(call add,SYSTEM_PACKAGES,memtest86+)
@$(call add,SYSLINUX_CFG,memtest) @$(call add,SYSLINUX_CFG,memtest)
@$(call add,GRUB_CFG,memtest_bios)
else else
use/memtest: ; @: use/memtest: ; @:
endif endif