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 Feb 24, 2020. It is now read-only.
Chroot into the stage1 which makes doing bind mounts more annoying
Statically compile the stage1 so it doesn't depend on the host. Also patch out the stupid logic to check /run/systemd/system and talk to dbus to get the machine-id.
/cc @eyakubovich Where is that machine-id thing you were talking about? Can you add some more info on this?
The text was updated successfully, but these errors were encountered:
I worked on a prototype to use a static chroot'd stage1 to execute from1 but I ended up getting errors about mount MS_MOVE returning -EINVAL when execing nspawn. This needs some investigation.
systemd-nspawn uses /etc/machine-id to generate a MAC address for the veth. They mix that with container_id (and then hash it) to produce a quasi-unique MAC for the veth.
The 3rd obvious option is to simply execute systemd-nspawn with LD_LIBRARY_PATH set to our libs, this gives us the same level of host-independence statically linking systemd-nspawn would give.
We have two annoying options to get around this:
Chroot into the stage1 which makes doing bind mounts more annoying
Statically compile the stage1 so it doesn't depend on the host. Also patch out the stupid logic to check
/run/systemd/system
and talk to dbus to get the machine-id./cc @eyakubovich Where is that machine-id thing you were talking about? Can you add some more info on this?
The text was updated successfully, but these errors were encountered: