Repository navigation
installer: use lorax s390x templates, allow adding parameters at boot - #732
Conversation
|
cc Dan @sharkcz for opinions. |
5729a6f to
3c174a4
Compare
|
Please don't merge this right now, I'm checking some issue with it. |
3c174a4 to
91df0cc
Compare
|
@martinezjavier : I forgot to hardcode This one is now ready I believe. Will open another PR to coreos-installer soon. |
|
Looks like this is failing CI: (Also this will conflict with the PXE live PR I think) |
|
Yes this one and the zFCP one are conflicted with Benjamin's new PR of live ISO/PXE. |
|
Still testing, and not sure if/how to do the live image on s390x. |
We ship separate netboot artifacts, so it isn't necessary to dig around within the contents of the ISO. Is there any reason to prefer that approach over just using the separate kernel and initramfs images? Note that in the live image, the ISO initramfs has an extra 256 KB of padding compared to the PXE one. Also note that the plan is to eventually deprecate the installer images in favor of the live images. |
91df0cc to
85237e3
Compare
Yes, the reason is we might want to use
This PR cannot deal with live image scenario. I need to look into more detail to support live image. |
|
@cgwalters , @bgilbert : As being said above, this PR will not do live image just yet. I think it's ready now, please review again. |
|
cc @sharkcz again for backing up the 8 char thing requirement. Also, I'm not every sure if file without "extension" like |
|
It's |
|
Looks reasonable to me; needs some small fixes for |
85237e3 to
df076b1
Compare
Thanks, was not aware of this before, will watch out for future commits. Commit updated. |
|
Friendly ping on this one. |
jlebon
left a comment
There was a problem hiding this comment.
This looks sane to me though I'm not familiar with the details of s390x. Just some minor comments from scanning it.
Significant changes include: - Use a naming convention for kernel and initramfs file, which would help for s390x case. The reasoning is that z/VM's CMS files do not allow names and extentions more than 8 characters. While we are renaming, lets stick with traditional RHEL/Fedora naming so redhat.exec and generic.ins don't require changes from lorax templates. - Allow us to add parameters (ignition, raw image, etc.) at boot time for s390x using 'rd.cmdline=ask' dracut parameters. It is better to reuse lorax templates rather than adding it on our own. - generic.ins and redhat.exec from lorax allow us to loop mount the ISO image and expose its mount point via FTP, then LPAR and z/VM can fetch kernel and initramfs from there to boot, basically the same netboot method on RHEL/Fedora, and the same PXE experience on x86. - We also need to add 'rd.neednet=1 coreos.inst=yes' from zipl.prm so that coreos-installer-generator will replace default.target with coreos-installer.target, before user adds any parameter at dracut-cmdline-ask. Signed-off-by: Tuan Hoang <[email protected]>
df076b1 to
c7ef329
Compare
Backport from PR coreos#732 with some small changes. coreos#732
installer: use lorax s390x templates, allow adding parameters at boot
Significant changes include:
Use a naming convention for kernel and initramfs file, which would
help for s390x case. The reasoning is that z/VM's CMS files do not allow
names and extentions more than 8 characters. While we are renaming, lets
stick with traditional RHEL/Fedora naming so redhat.exec and generic.ins
don't require changes from lorax templates.
Allow us to add parameters (ignition, raw image, etc.) at boot time
for s390x using 'rd.cmdline=ask' dracut parameters. It is
better to reuse lorax templates rather than adding it on our own.
generic.ins and redhat.exec from lorax allow us to loop mount the ISO
image and expose its mount point via FTP, then LPAR and z/VM can fetch
kernel and initramfs from there to boot, basically the same netboot
method on RHEL/Fedora, and the same PXE experience on x86.
We also need to add 'rd.neednet=1 coreos.inst=yes' from zipl.prm so that
coreos-installer-generator will replace default.target with
coreos-installer.target, before user adds any parameter at
dracut-cmdline-ask.
Signed-off-by: Tuan Hoang [email protected]