Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

stage1: build a static compiled version #69

Closed
philips opened this issue Nov 27, 2014 · 5 comments
Closed

stage1: build a static compiled version #69

philips opened this issue Nov 27, 2014 · 5 comments

Comments

@philips
Copy link
Contributor

philips commented Nov 27, 2014

We have two annoying options to get around this:

  1. Chroot into the stage1 which makes doing bind mounts more annoying

  2. 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?

@philips philips added this to the v0.1.1 milestone Nov 27, 2014
@philips
Copy link
Contributor Author

philips commented Dec 1, 2014

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.

/cc @vcaputo

@eyakubovich
Copy link
Contributor

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.

@vcaputo
Copy link
Contributor

vcaputo commented Dec 1, 2014

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.

@jonboulle jonboulle mentioned this issue Dec 1, 2014
3 tasks
@vcaputo
Copy link
Contributor

vcaputo commented Dec 2, 2014

This should be an improvement and eliminates that mkdirall:
#149

@philips philips modified the milestones: v0.1.2, v0.1.1 Dec 11, 2014
@jonboulle
Copy link
Contributor

This should be resolved by #149 and friends.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants