4e90888bcf
For example Ubuntu installs a bridge called `virbr0` by default for LXC. Using this system-provided bridge avoids having to configure one specifically before gitian building. This commits makes it possible to override the bridge used by gitian using the environment variable LXC_BRIDGE. The default is still to use `br0` as before.
14 lines
295 B
Bash
Executable File
14 lines
295 B
Bash
Executable File
#!/bin/bash
|
|
|
|
wd=`pwd`
|
|
|
|
if [ -z "$LXC_GUEST_IP" ]; then
|
|
LXC_GUEST_IP=10.0.2.5
|
|
fi
|
|
|
|
if [ -z "$LXC_BRIDGE" ]; then
|
|
LXC_BRIDGE=br0
|
|
fi
|
|
|
|
sed "s;ROOTFS;$wd/target-$LXC_SUITE-$LXC_ARCH;;s;ARCH;$LXC_ARCH;g;;s;GUESTIP;$LXC_GUEST_IP;g;s;GUESTLINK;$LXC_BRIDGE;g" < etc/lxc.config.in > var/lxc.config
|