diff --git a/examples/iowrt/config b/examples/iowrt/config index bbc890b9464e4634393eed3651ee2962fd1ddfda..84150424235dc9d5ba5c1a2beaad1524f24d1e45 100644 --- a/examples/iowrt/config +++ b/examples/iowrt/config @@ -1,11 +1,3 @@ -lxc.net.0.type = veth -lxc.net.0.link = lxcbr0 -lxc.net.0.flags = up -lxc.net.0.hwaddr = 00:16:3e:8e:25:2d - -lxc.rootfs.path = dir:/tmp/lxc/test/rootfs -lxc.uts.name = "test" - lxc.cap.drop = mac_admin lxc.cap.drop = mac_override lxc.cap.drop = sys_admin @@ -27,11 +19,29 @@ lxc.tty.max = 5 lxc.pty.max = 5 lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed +# Networking block +lxc.net.0.type = veth +lxc.net.0.link = lxcbr0 +lxc.net.0.flags = up + lxc.net.0.type = veth lxc.net.0.flags = up lxc.net.0.link = br-lan lxc.net.0.name = eth0 lxc.net.0.mtu = 1500 -lxc.mount.entry = /lib lib none ro,bind 0 0 -lxc.mount.entry = /sys/kernel/security sys/kernel/security none ro,bind,optional 0 0 +# Rootfs path +lxc.rootfs.path = dir:/tmp/lxc/iowrt/rootfs +lxc.uts.name = "iowrt" + +# Application start point +lxc.init.cmd = "/sbin/init" + +# Users +#lxc.init.uid = 1002 +#lxc.init.gid = 1002 + +# Mount points +lxc.mount.entry = /etc/config/wireless etc/config/wireless none ro,bind,create=file,optional 0 0 +lxc.mount.entry = /etc/config/mapcontroller etc/config/mapcontroller none rw,bind,create=file,optional 0 0 +lxc.mount.entry = /var/run/ubus/ubus.sock run/ubus/ubus.sock none rw,bind,create=file,optional 0 0