Open OnGle opened 4 days ago
I'm not entirely sure how/why the hostname got set where it did, a quick glance and these are the only files in confconsole that deal with the hostname:
https://github.com/turnkeylinux/confconsole/blob/master/plugins.d/System_Settings/hostname.py
and
https://github.com/turnkeylinux/confconsole/blob/master/ifutil.py
Although from a quick skim it doesn't seem like either of these could've caused it.
This is the initial overlayed interfaces file: https://github.com/turnkeylinux/common/blob/18.x/overlays/turnkey.d/interfaces/etc/network/interfaces
And this is the inithook that sets the hostname: https://github.com/turnkeylinux/common/blob/986c64c5bc0e229e6db92c6f189cc7c214beaf3e/conf/turnkey.d/hostname#L22
But neither of them seem suspect either.
There seems to be a bug still in the "hostname stuff". I installed the latest turnkey-core on Proxmox. There is only one ethernet interface, eth0. It looks like turnkey added
hostname core
to eth1, even though that doesn't exist on my container and it's probably rare to have another ethernet interface in a container.Also, the hostname has been changed to test2, but the one in the interfaces file has not been changed. I suspect that is because I didn't change the hostname in confconsole, yet. This might be a bug in the interaction between Proxmox's container setup and what Turnkey is expecting. I will have to learn more about that.
(Let me know if I should create a new issue for this.)
Originally posted by @ebertland in https://github.com/turnkeylinux/tracker/issues/1711#issuecomment-2453100096