Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kernel and initramfs.img to the pipeline output #161

Closed
imcleod opened this issue Mar 11, 2019 · 5 comments
Closed

Add kernel and initramfs.img to the pipeline output #161

imcleod opened this issue Mar 11, 2019 · 5 comments
Labels
jira for syncing to jira

Comments

@imcleod
Copy link

imcleod commented Mar 11, 2019

Much like a composed RHEL or Fedora tree, it would be great to have direct access to the kernel and initramfs of the installer. For example, with F29 you have:

http://repo.ialab.dsu.edu/fedora/linux//releases/29/Server/x86_64/os/images/boot.iso

But you also have:

http://repo.ialab.dsu.edu/fedora/linux//releases/29/Server/x86_64/os/images/pxeboot/initrd.img
http://repo.ialab.dsu.edu/fedora/linux//releases/29/Server/x86_64/os/images/pxeboot/vmlinuz

This allows tools like virt-install or OZ to look at a "tree" and direct boot the kernel and ramdisk, with fine grain control over the kernel command line. This is quite helpful.

Can we add these two artifacts to the pipeline output for FCOS?

@dustymabe
Copy link
Member

Since it is just the same initramfs and vmlinuz can pretty easily add these as outputs to our pipeline. Worth noting, though, that there may be some changes once we start to work on #105 and #106.

cc @bgilbert

@dustymabe dustymabe added the meeting topics for meetings label Mar 13, 2019
@lucab
Copy link
Contributor

lucab commented Mar 13, 2019

#105 (live artifacts) may end up producing a different pair of kernel+initramfs (and ISO).
Thus, let's just make sure that the installer artifacts have a .installer component-label somewhere in their name.
That way we can produce side-by-side at some point in the future (and maybe eventually drop this, if we end up following CL live-PXE install path).

@bgilbert bgilbert removed the meeting topics for meetings label Mar 14, 2019
@dustymabe dustymabe added the jira for syncing to jira label Mar 20, 2019
@dustymabe
Copy link
Member

There are two ways we could implement this in COSA. We could either generate these during the same buildextend-installer command (the script already pulls out the kernel/initrd anyway) and add them to the output artifacts or we could create a new command to do this piece.

@yuqi-zhang
Copy link

I vote we just have it as part of buildextend-installer unless we foresee a reason we'd need to have them in a separate process in the future

mike-nguyen added a commit to mike-nguyen/coreos-assembler that referenced this issue Mar 27, 2019
Create initramfs and kernel artifacts.  This was requested in an
upstream issue [0].  Having the initramfs and kernel artifacts "allows
tools like virt-install or OZ to look at a "tree" and directly boot
the kernel with fine grain control over the kernel command line".

The installer ISO generation already pulls the initramfs and kernel
from the ostree repo so this just piggybacks off that and copies the
artifacts to the build directory.

[0] coreos/fedora-coreos-tracker#161
mike-nguyen added a commit to mike-nguyen/coreos-assembler that referenced this issue Mar 27, 2019
This was requested in an upstream issue[0].  Having the initramfs and
kernel artifacts "allows tools like virt-install or OZ to look at a
"tree" and directly boot the kernel with fine grain control over the
kernel command line."

The installer ISO generation already pulls the initramfs and kernel
from the ostree repo so this just piggybacks off that and copies the
artifacts to the build directory.

[0] coreos/fedora-coreos-tracker#161
mike-nguyen added a commit to mike-nguyen/coreos-assembler that referenced this issue Mar 27, 2019
This was requested in an upstream issue[0].  Having the initramfs and
kernel artifacts "allows tools like virt-install or OZ to look at a
"tree" and directly boot the kernel with fine grain control over the
kernel command line."

The installer ISO generation already pulls the initramfs and kernel
from the ostree repo so this just piggybacks off that and copies the
artifacts to the build directory.

[0] coreos/fedora-coreos-tracker#161
@mike-nguyen
Copy link
Member

initramfs and kernel are now artifacts of a build: http://artifacts.ci.centos.org/fedora-coreos/prod/builds/latest/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira for syncing to jira
Projects
None yet
Development

No branches or pull requests

6 participants