To change kernel without gearlock and pre install it to the ISO, follow the steps carefully.
First boot to gearlock recovery mode in any Android x86 with installed newer kernel and open virtual terminal.
Then from virtual terminal use uname -a command to verify its a newer kernel.
1. Mount the drive on which Prime OS iso is present.
x=partition number mkdir /tmp/c mount /dev/sdax /tmp/c
Or for NTFS partition- mount.ntfs /dev/sdax /tmp/c
2. change directory to the folder in which Prime OS ISO image is present cd /tmp/c/Users/<your name>/Downloads
3. Loop mount the ISO and next the sfs and get the system.img mkdir /tmp/iso mount -o loop prime*.iso /tmp/iso mount /tmp/iso/system.sfs /tmp/iso
now let's make a copy of the system.img to your main disk to change kernel pv /tmp/system.img > /tmp/c/system.img
wait for it to complete; then
loop mount the system.img mkdir /tmp/system mount /tmp/c/system.img /tmp/system
There are three things that should be replaced to change the kernel.
Delete old kernel modules to save space in system image. rm -rf /tmp/system/lib/firmware/* && rm -rf /tmp/system/lib/modules/*
copy kernel modules and firmware from your booted android x86 to the prime OS system image
gclone is a gearlock specific command, equivalent to running rsync -ah --info=progress2
you can substitute cp -r for that as well. gclone /system/lib/modules/ /tmp/system/lib/modules/ gclone /system/lib/firmware/ /tmp/system/lib/firmware/
Now lets copy the kernel image from booted android x86 to your main drive cp /gearlock/gearroot/$SRC/kernel /tmp/c/
Safely unmount the system.img. umount /tmp/c/system.img
Now type exit and enter, then boot to windows.
Download a mksquashfs.exe, then use it to pack the system.img to system.sfs.
Then put the system.sfs and new kernel image back to the iso (I use ultra ISO for this) and install Prime OS, you will get the new Kernel.