-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fixes #38168 - Add hostname parameter to kickstart kernel params #10423
Fixes #38168 - Add hostname parameter to kickstart kernel params #10423
Conversation
Hey @ShimShtein With your change, I was getting the same behavior/issue. Please, let me share the change that was necessary to fix this issue.
In anaconda documentation link, we can see the way to set the fqdn, when using dhcp
Thank you! |
3ab2648
to
5bbec79
Compare
Thanks @waldirio ! |
@@ -67,7 +67,7 @@ description: | | |||
end | |||
options.push("dualstack!") if subnet4 && subnet6 | |||
if subnet4 && subnet4.dhcp_boot_mode? | |||
options.push("ip=dhcp") if rhel_compatible && major >= 7 | |||
options.push("ip=::::#{hostname}::dhcp") if rhel_compatible && major >= 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to myself, from the docs:
Technically all of the items are optional, so if you want to use dhcp but also set a hostname you can use ip=::::::dhcp.
https://anaconda-installer.readthedocs.io/en/latest/boot-options.html
Tested this Patch, The provisioning is successful and only one host is created with provided hostname during host creation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍏 code LGTM & verified by QE, let's get this in.
Thanks @ShimShtein @shubhamsg199 |
This will force proper hostname during the installation phase