reduced min required kernel header version from 2.12 to 2.10
See https://www.kernel.org/doc/Documentation/x86/boot.txt We don't need any of the 2.11+ features, but we were checking for at 2.12+. The Centos 6.6 kernel is 2.10. Fixes https://github.com/mist64/xhyve/issues/21
This commit is contained in:
parent
096363f4fd
commit
6fd89015b8
1 changed files with 2 additions and 2 deletions
|
@ -92,8 +92,8 @@ kexec_load_kernel(char *path, char *cmdline) {
|
|||
|
||||
if ((zp->setup_header.setup_sects == 0) || /* way way too old */
|
||||
(zp->setup_header.boot_flag != 0xaa55) || /* no boot magic */
|
||||
(zp->setup_header.header != HDRS) || /* way too old */
|
||||
(zp->setup_header.version < 0x020c) || /* too old */
|
||||
(zp->setup_header.header != HDRS) || /* way too old */
|
||||
(zp->setup_header.version < 0x020a) || /* too old */
|
||||
(!(zp->setup_header.loadflags & 1)) || /* no bzImage */
|
||||
(sz < (((zp->setup_header.setup_sects + 1) * 512) +
|
||||
(zp->setup_header.syssize * 16)))) /* too small */
|
||||
|
|
Loading…
Add table
Reference in a new issue