-
Notifications
You must be signed in to change notification settings - Fork 171
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
s390x: do not write first boot args to BLS file #780
Conversation
The first boot arguments are just ephemeral. If we add them to BLS file, then we have to remove them in ignition-firstboot-complete.service during first boot, which would complicate it. Without adding them to BLS file, an invoke of zipl without any parameters (assuming zipl.conf and BLS files are present) is enough.
I see the problem but I don't quite understand how this fixes it. Won't we start without the firstboot flag? Or what am I missing? |
Without this change, the first boot arguments are written to both BLS files and bootloader segments/blocks of the disk ("burnt" by zipl). We only need the latter to start the image with first boot arguments. The write to BLS file is redundant. So basically this one is to fix my mistake :D |
Be reminded that, we only re-rewrite the BLS file atm is because of s390-tools issue 64 (aka. expect order of fields, and no blank lines). After it's fixed, we don't need to touch the BLS file at all. In fact Javier fixed it in ostree. |
Hmm, I'm confused, does zipl not apply the kernel cmdline options in the BLS config? Why do we need to pass it through |
I don't quite understand this still, sorry. If you tested it and it has the full expected behavior that:
IOW, Ignition only runs once - then OK by me! But I thought s390x support for this was predicated on the patch to sed the BLS file that's...somewhere. |
It may also be the case that while this patch doesn't fix everything, it makes things better - if so I have no objections to merging. (Thinking about this a bit more, it seems to me that |
Yes, zipl does apply kcmdline options in BLS config, but if we just invoke |
Yes, zipl burns zipl records including
Yes. I have not sent a patch yet but it would be as simple as this:
Yes. It has to :)
Maybe this one ? ibm-s390-linux/s390-tools#69
Correct. Without this patch,
So there is no point to add ignition.firstboot to BLS file at all. Again, this is to fix my mistake.
Correct again! |
If you prefer, we can postpone this, and let us (from ibm/s390-tools and fedora/s390utils sides) fix the current 2 issues on with zipl first (expected to be done in the next 3-4 days) then we can merge this. I say this because atm during
I'm perfectly fine with this. |
The first issue got a patch, looks ok (s390-tools#70). Patch for second issue is ongoing (s390-tools#69). |
zipl records need to be updated, because ignition.firstboot is burned into target disk during coreos-installer As a short-term solution for: coreos#84 Depends on: ibm-s390-linux/s390-tools#71 ibm-s390-linux/s390-tools#74 Related: coreos/coreos-installer#61 coreos/coreos-assembler#780
zipl records need to be updated, because ignition.firstboot is burned into target disk during coreos-installer As a short-term solution for: coreos#84 Depends on: ibm-s390-linux/s390-tools#71 ibm-s390-linux/s390-tools#74 Related: coreos/coreos-installer#61 coreos/coreos-assembler#780
Friendly ping. I think we have everything we needed. |
zipl records need to be updated, because ignition.firstboot is burned into target disk during coreos-installer As a short-term solution for: coreos#84 Depends on: ibm-s390-linux/s390-tools#71 ibm-s390-linux/s390-tools#74 Related: coreos/coreos-installer#61 coreos/coreos-assembler#780
zipl records need to be updated, because ignition.firstboot is burned into target disk during coreos-installer As a short-term solution for: #84 Depends on: ibm-s390-linux/s390-tools#71 ibm-s390-linux/s390-tools#74 Related: coreos/coreos-installer#61 coreos/coreos-assembler#780
zipl records need to be updated, because ignition.firstboot is burned into target disk during coreos-installer As a short-term solution for: coreos#84 Depends on: ibm-s390-linux/s390-tools#71 ibm-s390-linux/s390-tools#74 Related: coreos/coreos-installer#61 coreos/coreos-assembler#780 (cherry picked from commit 38af701)
zipl records need to be updated, because ignition.firstboot is burned into target disk during coreos-installer As a short-term solution for: #84 Depends on: ibm-s390-linux/s390-tools#71 ibm-s390-linux/s390-tools#74 Related: coreos/coreos-installer#61 coreos/coreos-assembler#780 (cherry picked from commit 38af701)
The first boot arguments are just ephemeral. If we add them to BLS file,
then we have to remove them in ignition-firstboot-complete.service
during first boot, which would complicate it. Without adding them to BLS
file, an invoke of zipl without any parameters (assuming zipl.conf and
BLS files are present) is enough.