mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-12-14 22:25:28 +01:00
Overriding hostname in a .conf file, via base-files:
HOST_NAME="k3s-host"
hostname_pn-base-files = "${HOST_NAME}"
Is always a valid option, but if it is not configured, we can easily
have two hosts with the same name on the network, confusing adddress
assignement, etc.
This commit introduces a way to generate a unique hostname based
on the uuid of the build host, and the machine being built.
If virt-unique-hostname is added to IMAGE_FEATURES, like the following:
IMAGE_FEATURES += "virt-unique-hostname"
IMAGE_FEATURES[validitems] += "virt-unique-hostname"
Then a rootfs postprocessing hook will override hostnae to something
unique.
Note: this means your image will be reproducible on a single builder,
but not between them.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
|
||
|---|---|---|
| .. | ||
| cni_networking.bbclass | ||
| image-oci-sloci-image.inc | ||
| image-oci-umoci.inc | ||
| image-oci.bbclass | ||
| meta-virt-cfg.bbclass | ||
| meta-virt-hosts.bbclass | ||
| meta-virt-k8s-cfg.bbclass | ||
| meta-virt-xen-cfg.bbclass | ||
| qemuboot-testimage-network.bbclass | ||
| qemuboot-xen-defaults.bbclass | ||
| qemuboot-xen-dtb.bbclass | ||
| sanity-meta-virt.bbclass | ||