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

Fix DNS resolution in initramfs #367

Merged
merged 3 commits into from
Feb 16, 2024
Merged

Conversation

abrychcy
Copy link
Contributor

As mentioned in #148 there seems to be a problem with the name resolution when using tang pin. If the URL to the server is not a plain IP, clevis is unable to contact tang. I could recreate this issue on Ubuntu 11. The changes in initramfs-tool hooks and scripts fixed it.

In my test setup i could only verify the changes with a DHCP server that hands out a single DNS server via IPv4 on a single interface. So the second IPv4 DNS, IPv6 DNS and multiple interfaces section in the code is only proofread and not tested.

Add DNS servers to /etc/resolv.conf after interfaces are setup via configure_networking
Create resolv.conf with all configured interfaces
Copy libs into initrd required for DNS resolution
@sarroutbi sarroutbi merged commit bebb037 into latchset:master Feb 16, 2024
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.

3 participants