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
RFE: provide a way to persist hostname via live ISO/coreos-installer
#697
Comments
hi @dustymabe .. this still seems to be an open issue with sno bootstrap in place ? i have tried updating bootstrap-in-place-for-live-iso.ign which works until the pivot i.e hostname is set, but not copied over. i see the --copy-network working as expected and +1 the idea of adding a --copy-hostname |
@eformat Can you go into more details on the setup? The hostname is currently being set during the live ISO boot via Ignition and then you install RHCOS using |
hi @jlebon, thanks for responding - so i'm doing this for bootstrap in place generate ignition
set copy-network in install config
then generate boot iso with ignition
which works for bootstrap phase i.e. host is set ok to sno in this case .. but .. after the pivot, the network is copied, but not the hostname. so i have to ssh into the node, and
|
@eformat Thanks. To answer your question, yes this is still an outstanding RFE. For now you can provide an Ignition config that sets the hostname. Note that
This looks like it's abusing how that string is passed around. I wouldn't rely on this since it may break in the future. That said, in your use case, you're providing a hostname already via the |
An option to copy the hostname file would be really useful for quick test/POC cluster creation. |
Describe the enhancement
Right now a user can configure the network via
nmtui
in the live ISO environment and usecoreos-installer --copy-network
to copy those networking configurations into the installed system.nmtui
also has a menu option for setting the system hostname. We've had requests (example) for being able to set the hostname viacoreos-installer
as well, but I'm a bit hesitant on if we should because the whole "forward networking" bit is a bit fragile to begin with.The options I see are:
--copy-hostname
that will try to propagate the info in/etc/hostname
into the real root and will fail if/etc/hostname
doesn't exist.--copy-network
and copy it if it exists, and do nothing if not.For the first two options we'd basically need to cp the file into the boot partition like we do for the networking configs and then pass it along a few times before it gets set by the initramfs propagating code that we have. A bit fragile/brittle, but we're doing it already for other things. I guess a less fragile way to do it would be to convert the file into an Ignition config and merge it with the other config the user provided.
The text was updated successfully, but these errors were encountered: