aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxc/lxc_2.0.8.bbappend
blob: b812f51039a945d8b02d41234b1b6608c8fc5f9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
PACKAGECONFIG[python3] = "--enable-python,--disable-python,python3,"

pkg_postinst_${PN}-networking_append() {
	# set static ip for lxcbr0 bridge
	LXCBR_IP="iface lxcbr0 inet static\n        address 10.0.3.1\n        netmask 255.255.255.0"
	sed -i "s/iface lxcbr0 inet dhcp/${LXCBR_IP}/g" /etc/network/interfaces

	# remove eth0 interface from lxcbr0 to avoid nfs comunication errors
	sed -i 's/brctl addif lxcbr0 eth0/# brctl addif lxcbr0 eth0/g' /etc/network/if-pre-up.d/lxcbr0
	sed -i 's/ip addr flush eth0/# ip addr flush eth0/g' /etc/network/if-pre-up.d/lxcbr0
	sed -i 's/ifconfig eth0 up/# ifconfig eth0 up/g' /etc/network/if-pre-up.d/lxcbr0
}