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: Set address based on interface in provision.sh #540

Merged
merged 3 commits into from
Sep 28, 2022

Conversation

Callisto13
Copy link
Member

In machines with less simple or "clean" networking, the provision script could discover multiple default interfaces and multiple internal ips. This led to a messed up config and obviously flintlockd would not start.

This commit changes the script so that if more than one is found, just the first default interface is set.

The found interface is then used to find a single associated internal address.

There are flags to override both these options, which is what most people will be doing, but the default behaviour needs to work too.

In machines with less simple or "clean" networking, the provision script
could discover multiple `default` interfaces and multiple internal ips.
This led to a messed up config and obviously flintlockd would not start.

This commit changes the script so that if more than one is found, just
the first `default` interface is set.

The found interface is then used to find a single associated internal address.

There are flags to override both these options, which is what most
people will be doing, but the default behaviour needs to work too.
@Callisto13 Callisto13 added the kind/bug Something isn't working label Sep 26, 2022
@Callisto13 Callisto13 merged commit 56d7522 into liquidmetal-dev:main Sep 28, 2022
@Callisto13 Callisto13 deleted the fix-provision branch September 28, 2022 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants