You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
In function container_bootstrap, DISTRO_NAME and DISTRO_RELEASE are derived from DISTRO_FULL.
Then R, the directory where the machine is cached, depends on DISTRO_FULL.
If R doesn't exist, a machine is debootstrap-ed in there, and the /etc/hosts file is filled with the NAME of that first machine.
Example : machinespawn bootstrap "ubuntu-22.10" "ubuntu-butterfly" "amd64" will create a machine in /var/cache/machinespawn/bootstrap/ubuntu-22.10-amd64 and write 127.0.0.1 localhost ubuntu-butterfly to /var/cache/machinespawn/bootstrap/ubuntu-22.10-amd64/etc/hosts.
But because R doesn't depend on the machine's name, it is not possible to create a correct second container based on ubuntu-22.10.
Example: machinespawn bootstrap "ubuntu-22.10" "butterfly-builder" "amd64" will not create the machine in /var/cache/machinespawn/bootstrap/ubuntu-22.10-amd64 because the directory already exists. The machine is then correctly imported with the name butterfly-builder but its /etc/hosts file contains 127.0.0.1 localhost ubuntu-butterfly and not 127.0.0.1 localhost butterfly-builder
The text was updated successfully, but these errors were encountered:
ymauray
added a commit
to ymauray/machinespawn
that referenced
this issue
Nov 25, 2022
In function
container_bootstrap
,DISTRO_NAME
andDISTRO_RELEASE
are derived fromDISTRO_FULL
.Then
R
, the directory where the machine is cached, depends onDISTRO_FULL
.If
R
doesn't exist, a machine isdebootstrap
-ed in there, and the/etc/hosts
file is filled with theNAME
of that first machine.Example :
machinespawn bootstrap "ubuntu-22.10" "ubuntu-butterfly" "amd64"
will create a machine in/var/cache/machinespawn/bootstrap/ubuntu-22.10-amd64
and write127.0.0.1 localhost ubuntu-butterfly
to/var/cache/machinespawn/bootstrap/ubuntu-22.10-amd64/etc/hosts
.But because
R
doesn't depend on the machine's name, it is not possible to create a correct second container based onubuntu-22.10
.Example:
machinespawn bootstrap "ubuntu-22.10" "butterfly-builder" "amd64"
will not create the machine in/var/cache/machinespawn/bootstrap/ubuntu-22.10-amd64
because the directory already exists. The machine is then correctly imported with the namebutterfly-builder
but its/etc/hosts
file contains127.0.0.1 localhost ubuntu-butterfly
and not127.0.0.1 localhost butterfly-builder
The text was updated successfully, but these errors were encountered: