-
Notifications
You must be signed in to change notification settings - Fork 159
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
40ignition-conf: support .d dir for base config fragments #676
40ignition-conf: support .d dir for base config fragments #676
Conversation
overlay.d/05core/usr/lib/dracut/modules.d/40ignition-conf/afterburn-sshkeys.ign
Outdated
Show resolved
Hide resolved
I'm a bit confused, do we really need this change? IOW for FCOS we have:
And RHCOS just has the first or so? |
@cgwalters Yup, I agree with your proposal. |
overlay.d/05core/usr/lib/dracut/modules.d/40ignition-conf/10-afterburn-sshkeys.ign
Outdated
Show resolved
Hide resolved
overlay.d/05core/usr/lib/dracut/modules.d/40ignition-conf/module-setup.sh
Outdated
Show resolved
Hide resolved
overlay.d/15fcos/usr/lib/dracut/modules.d/configs/30core-afterburn-sshkeys.ign
Outdated
Show resolved
Hide resolved
overlay.d/15fcos/usr/lib/dracut/modules.d/configs/module-setup.sh
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment, LGTM as is!
overlay.d/15fcos/usr/lib/dracut/modules.d/fcos-ignition/module-setup.sh
Outdated
Show resolved
Hide resolved
Is this still WIP? PR title says it is. :) |
Actually, I wanted to get this PR in before merging this one. But I'm not sure if it's a valid concern. |
Oh right, we need to hold this until the Ignition support is there. Otherwise we'd essentially be reverting #626. Added a
Hmm, is this accurate? We're just splicing out a part of the base config into a
How something like:
|
@jlebon Yeah, you're right. I think I missed that point to change the commit message and the commit body message after my last changes.
+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dracut module directory names usually start with a two-digit sequence number.
Remember to move and update the README.md from 40ignition-conf
.
overlay.d/15fcos/usr/lib/dracut/modules.d/fcos-ignition/module-setup.sh
Outdated
Show resolved
Hide resolved
overlay.d/15fcos/usr/lib/dracut/modules.d/fcos-ignition/module-setup.sh
Outdated
Show resolved
Hide resolved
overlay.d/15fcos/usr/lib/dracut/modules.d/fcos-ignition/module-setup.sh
Outdated
Show resolved
Hide resolved
overlay.d/15fcos/usr/lib/dracut/modules.d/fcos-ignition/module-setup.sh
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10fcos-ignition will run before 40ignition-conf, which is currently harmless but a little confusing. Maybe call it 50ignition-conf-fcos?
overlay.d/15fcos/usr/lib/dracut/modules.d/10fcos-ignition/README.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The core config has a dash after the sequence number in the filename, but the Afterburn fragment doesn't. LGTM otherwise.
overlay.d/15fcos/usr/lib/dracut/modules.d/50ignition-conf-fcos/README.md
Outdated
Show resolved
Hide resolved
overlay.d/15fcos/usr/lib/dracut/modules.d/50ignition-conf-fcos/module-setup.sh
Outdated
Show resolved
Hide resolved
overlay.d/05core/usr/lib/dracut/modules.d/40ignition-conf/README.md
Outdated
Show resolved
Hide resolved
After having some discussion with @bgilbert and @arithx, it appears to me that this PR can't be merged in its current form since it requires coreos/ignition#1108, which leads to cutting another Ignition release. I think we already released a new version of Ignition a few days ago, and we wouldn't want to rush to create another release. Without the new Ignition release, this PR will certainly break CI. |
Ignition now supports a `base.d` directory for base config fragments that allows FCOS and RHCOS to maintain the same `00-core.ign`, and facilitate the distro-specific changes by placing the other base config fragments in a separate `overlay` directory(coreos/ignition#1108). This commit places 00-core.ign in a `base.d` directory. Also, keeping the legacy base config and the Afterburn bit as-is, otherwise, it will break CI. Once we have the new Ignition release, this PR (#717) will remove the legacy base config and revert #626
Make use of the new support for config fragments in Ignition (coreos/ignition#1108) to move out the Afterburn bit added in #626 to a separate overlay directory so that RHCOS can more easily avoid it.
ci: enable use of buildfetch
Fixes coreos/ignition#1101
This change is required for coreos/ignition#1108
Ignition PR allows the two distros i.e. RHCOS and FCOS to carry different
base.ign
files with common elements and will provide some flexibility as we start to see more divergence there.