On 23.09.21 17:22, Srinidhi B wrote:
Hello Kai,
I'm not an expert, but will try my best to respond.
On Thu, 2021-09-23 at 22:51 +0800, Kai Liu wrote:
Hi,
While looking at boo, I noticed that the kernel and initrd of the VM workers are different for different jobs.
For example, for SLES, qemu uses the kernel and initrd under /var/cache/obs/worker/root_*/.mount/boot/kernel. But for CentOS, it uses kernel under /boot. It looks like the SLES worker even runs the exact kernel version of the target OS.
SUSE distributions (SLES, openSUSE, etc.) use the kernel-obs-build package. I don't know the exact difference between the kernel-default and the kernel-obs- build packages, but this package is what provides the /var/cache/obs/worker/* kernel and initrd for SUSE distributions.
For non-SUSE distributions, there is no kernel-obs-build package yet, as far as I'm told. OBS seems to be using some sort of a workaround to provide the kernels in the /boot/ directory of the worker host machine.
https://github.com/seife/kernel-obs-build https://build.opensuse.org/package/show/home:seife:kiwitest-centos/kernel-ob... Without that, building CentOS-7 images with KIWI was hard/impossible or needed crazy workarounds IIRC. I never got past building this for CentOS-7, because I fortunately did not need it for anything else ;-) -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman