From b84f82e8f31ec6319e54f2cace3ddd6ecdddf6b5 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta <vivek.dutta@iopsys.eu> Date: Tue, 27 Jun 2023 16:16:29 +0530 Subject: [PATCH] Fix path in lxc example config --- examples/iowrt/config | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/examples/iowrt/config b/examples/iowrt/config index bbc890b..8415042 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 -- GitLab