nspawn: make host0's MAC address persistent
authorTom Gundersen <teg@jklm.no>
Thu, 13 Mar 2014 16:47:30 +0000 (17:47 +0100)
committerTom Gundersen <teg@jklm.no>
Thu, 13 Mar 2014 16:47:33 +0000 (17:47 +0100)
commit01dde0611bbf08f7e27aa8442f36eea2d0cca9de
tree262f0e1ef6281fe23cb6811299e852c6a1b45265
parentfc6c7fe9becdd70ae6b671c396f2ad2db0b71cd7
nspawn: make host0's MAC address persistent

We still need to make sure that no two MAC addresses are the same, so we use
a logic similar to what is used in udev to generate MAC addresses, and base
it on a hash of the host's machine ID and thecontainer's name.
src/nspawn/nspawn.c