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

overlay.d/05core: add ifname= karg udev rule propagation #2411

Merged
merged 2 commits into from
May 5, 2023

Conversation

dustymabe
Copy link
Member

This adds to coreos-teardown-initramfs.{service,sh} the ability to propagate udev rules that were generated by ifname-genrules.sh [1] to the real root of the machine to allow for an ephemeral ifname= karg on the first boot to have persistent configuration effect (similar to our other networking kernel arguments).

This also adds tests for both the firstboot and everyboot case for the ifname= karg.

Fixes coreos/fedora-coreos-tracker#553

[1] https://github.com/dracutdevs/dracut/blob/5c3d0a96473ac339fa2d1b25213b8f301c1cfd0d/modules.d/40network/ifname-genrules.sh

Copy link
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me! Just some minor comments.

# The expected IP is the first one in the range given out by QEMU
# user mode networking: https://www.qemu.org/docs/master/system/devices/net.html#using-the-user-mode-network-stack
expected_ip="10.0.2.15"
# Verify the given nic name has the expected IP. F
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: extraneous F

tests/kola/networking/ifname-karg/data/ifname-karg-lib.sh Outdated Show resolved Hide resolved
The link was to testiso code, which isn't the code being excercised
here. Let's just update the comment to say it's the default one QEMU
assigns.
This adds to coreos-teardown-initramfs.{service,sh} the ability to
propagate udev rules that were generated by ifname-genrules.sh [1]
to the real root of the machine to allow for an ephemeral ifname=
karg on the first boot to have persistent configuration effect (similar
to our other networking kernel arguments).

This also adds tests for both the firstboot and everyboot case for
the ifname= karg.

Fixes coreos/fedora-coreos-tracker#553

[1] https://github.com/dracutdevs/dracut/blob/5c3d0a96473ac339fa2d1b25213b8f301c1cfd0d/modules.d/40network/ifname-genrules.sh
@dustymabe
Copy link
Member Author

Addressed comments in the latest upload.

@dustymabe dustymabe enabled auto-merge (rebase) May 5, 2023 17:04
@dustymabe dustymabe merged commit d7c211b into coreos:testing-devel May 5, 2023
@dustymabe dustymabe deleted the dusty-persist-ifname-karg branch May 5, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forwarding NIC renaming udev rules from the initramfs
2 participants