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

Enable iSCSI netroot devices on Flatcar #22

Merged
merged 2 commits into from Apr 7, 2021

Conversation

margamanterola
Copy link
Contributor

Enable iSCSI netroot devices on Flatcar

This change enables the iSCSI module on dracut and changes the network behavior when Flatcar boots, to avoid bringing down the network when doing the switch-root operation.

This change is based on the CoreOS support for Oracle OCI bare metal machines, that was removed in 2018 with deba073.

Testing done

I've run CI with this change and it passed. I've also used the created image to mount a successfully mount an iSCSI netroot device and boot into the corresponding Flatcar instance.

This change is based on the CoreOS support for Oracle OCI bare metal
machines, that was removed in 2018 with deba073.

It's been adapted to modern systemd versions (using KeepConfiguration
instead of CriticalConnection) and it works for any netroot, not just
Oracle, as we never want to tear down the network if we're using a
netroot, otherwise the root goes away when systemd does the switch-root
operation.
@margamanterola margamanterola requested a review from a team March 30, 2021 11:20
@margamanterola margamanterola merged commit b36e194 into flatcar-master Apr 7, 2021
@margamanterola margamanterola deleted the marga-kinvolk/iscsi branch April 7, 2021 10:31
margamanterola added a commit to flatcar-archive/coreos-overlay that referenced this pull request Apr 7, 2021
This change pulls in the latest bootengine version, that enables ISCSI
support in dracut and avoids tearing down the network when using netroot

See flatcar/bootengine#22 for more information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants