FOG 1.6.1 – Memtest86+ 8.10 incorrectly classified as Linux kernel
-
Hi everyone,
After upgrading from FOG 1.5.10 to 1.6.1, I noticed a warning in the FOG Settings for FOG_MEMTEST_KERNEL.
The configured value is mt86plus_x86_64, but the web interface displays:
“This name is not a recognized file in the boot directory.”
The file exists in /var/www/html/fog/service/ipxe/, has correct permissions and is accessible via HTTP (200 OK).
After investigating the source code, I believe I found the cause in _looksLikeKernel() in src/Base/FOGPage.php.
The file headers are:
- list itembzImage: HdrS, boot protocol 0x020f
- list itemmt86plus_x86_64: HdrS, boot protocol 0x020c
Since the kernel detection accepts boot protocol versions greater than or equal to 0x020c, Memtest86+ 8.10 is classified as a kernel rather than a boot payload.
However, FOG_MEMTEST_KERNEL expects a file with the payload role.Thank you again for your great work on FOG 1.6.1!
-
@wbg You are right, and thank you for the header details. They made this quick to confirm.
Memtest86+ 6.0 and later is built to boot like a Linux kernel: it has a PE header,
HdrS, and boot protocol 0x020c. FOG’s boot file check therefore classifiedmt86plus_x86_64as a FOS kernel.FOG_MEMTEST_KERNELlists boot payloads only, so the default value that FOG ships showed the warning.The fix reads the version text in the file header. Memtest86+ reports
Memtest86+ v8.10, and a Linux kernel reports a release number. The server re-checks the file on the next page load, so the warning clears with no other action.- Issue: https://github.com/FOGProject/fogproject/issues/2241
- Fix: https://github.com/FOGProject/fogproject/pull/2242
The warning comes from the settings page only. The boot menu uses the value as it is, so “Run Memtest86+” still loads
mt86plus_x86_64. You do not need to change anything until the fix reaches your channel. -
T Tom Elliott has marked this topic as solved