How to build a custom ISO build with custom kernel


#1

Hi!

I looking for some help with building a custom ISO. I have already rolled a custom kernel for the custom ISO which the instruction state I should put in the os/assets directory. However, no where does the instructions inform one which files to edit for a custom kernel. Does anyone have experience with building a custom ISO with a custom kernel? Any suggestions?


#2

Does anyone have a recipe for producing a custom ISO?


#3

This turn out to be a “Kernel to old” error.

@itstamil Thanks for opening issue #2414.


#4

Was able to get past the FATAL: kernel too old. Even with line L67 changed to higher version you will get FATAL: kernel too old when jumping up to say 4.15+ kernels. The issue is, you are trying to compile against the existing OLD running kernel. You need to boot your system up with your NEW compiled kernel and then follow these instructions https://rancher.com/docs/os/v1.x/en/installation/custom-builds/custom-rancheros-iso/ to build your new file system.

I actually just injected the NEW vmlinuz kernel into RancherOS’s boot dir, updated syslinux and rebooted. Got few errors and Waiting for system-docker will run for 300 seconds and timed out. But everything is fine on boot. I then just followed the iso link above to created the rest.

Cheers!