Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
2731db39
Commit
2731db39
authored
Oct 25, 2022
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memtest, grub: add EFI support
Note: memtest86 is not signed.
parent
1bff8aba
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
90memtest.cfg
features.in/grub/cfg.in/90memtest.cfg
+6
-2
90memtest_efi.cfg
features.in/grub/cfg.in/90memtest_efi.cfg
+0
-6
config.mk
features.in/memtest/config.mk
+1
-1
02-memtest
features.in/memtest/stage1/scripts.d/02-memtest
+5
-1
No files found.
features.in/grub/cfg.in/90memtest
_bios
.cfg
→
features.in/grub/cfg.in/90memtest.cfg
View file @
2731db39
if [ "$grub_platform" = "pc" ]; then
menuentry $"Memory Test" --id 'memtest' {
echo $"Loading memtest.bin ..."
linux16 /boot/memtest.bin
linux /boot/memtest.bin
}
fi
if [ "$grub_platform" = "efi" ]; then
menuentry $"Memory Test (may not work with Secure Boot" --id 'memtest' {
linux /boot/memtest.efi
}
fi
features.in/grub/cfg.in/90memtest_efi.cfg
deleted
100644 → 0
View file @
1bff8aba
if [ "$grub_platform" = "efi" ]; then
menuentry $"Memory Test" --id 'memtest' {
chainloader /EFI/tools/memtest86.efi
boot
}
fi
features.in/memtest/config.mk
View file @
2731db39
...
...
@@ -3,7 +3,7 @@ use/memtest: use/syslinux use/grub
@$(call add_feature)
@$(call add,SYSTEM_PACKAGES,memtest86+)
@$(call add,SYSLINUX_CFG,memtest)
@$(call add,GRUB_CFG,memtest
_bios
)
@$(call add,GRUB_CFG,memtest)
else
use/memtest: ; @:
endif
...
...
features.in/memtest/stage1/scripts.d/02-memtest
View file @
2731db39
#!/bin/sh
mkdir
-p
"
$WORKDIR
"
/boot
MEMTEST
=
"
$(
find /boot/
-name
'memtest*'
-print
-quit
)
"
MEMTEST
=
"
$(
find /boot/
-name
'memtest*.bin'
-print
-quit
)
"
MEMTEST_EFI
=
"
$(
find /boot/
-name
'memtest*.efi'
-print
-quit
)
"
# hdt wiki recommends adding .bin
[
-z
"
$MEMTEST
"
]
||
cp
-f
"
$MEMTEST
"
"
$WORKDIR
"
/boot/memtest.bin
[
-z
"
$GLOBAL_EFI_BOOTLOADER
"
]
||
[
-z
"
$MEMTEST_EFI
"
]
||
cp
-f
"
$MEMTEST_EFI
"
"
$WORKDIR
"
/boot/memtest.efi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment