-
Notifications
You must be signed in to change notification settings - Fork 24
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
refactor: clear net config from initrd via NM config #156
refactor: clear net config from initrd via NM config #156
Conversation
fa16f9c
to
0330316
Compare
[citest] |
Nice! And - this just might allow the role to work on rpm-ostree and other image-based systems . . . |
I believe there's some additional rpm-ostree prep that would need to be done because of package installation, from what I gathered looking at roles that do support it. |
That is correct. |
0330316
to
efdf8ec
Compare
I'm changing this to a |
@maddymeows @sergio-correia with this patch, does the nbde_client role still need to rebuild initramfs - that is - it still needs to run the handler https://github.com/linux-system-roles/nbde_client/blob/main/handlers/main.yml ? which is currently doing
?
|
@jlebon: Hi, would you be able to help here, please? I am not entirely sure if we need to rebuild the initramfs on ostree systems . |
I believe initramfs generation on rpm-ostree systems is done with I'm also unsure about kernel cmdline now that I think of it, I believe the build process is isolated in a way from the live system which means it can't read |
Hi,
AIUI, the The For more general context, the commit message of latchset/clevis@c52caeb might be of interest. That said, I should also mention that with the latest image mode efforts, there's interest in being able to run Ansible playbooks as part of image building (see e.g. this example). It's possible to rebuild the initramfs also in this flow (see e.g. this example), but ideally soon one will instead be able to affect the kernel cmdline by dropping in a file in a directory as part of the container build and bootc would know to add the karg during deployment. That story is still developing though, so just something to keep in mind for now. |
The following configuration:
only needs to be present in the real root, as it tells NM running there to not use the connection profiles inherited from initrd. It would be better to name the section something like |
That's correct, but would need to keep in mind that clevis-dracut brings in a dracut module, which, if not present in the base image, would still require a rebuild of the initramfs image. I believe it's in the base image for FCOS but I wouldn't know about others.
Interesting, I think I misunderstood the examples on how to use the |
Uses a NetworkManager config drop in file to accomplish the equivalent of the previous network flushing dracut module.
I have no idea how correct my approach is, I took the general approach from another system role I found. Nor do I know of any way to properly test this on real systems.
Closes #155