What used to be called 'config_2' was actually meant to be used with
LXC 3.0 and later, so call it config_3 and fix the logic.
Also lxc.pty.max is an LXC 3.0 feature
lxc.net.0.hwaddr = 00:16:3e:f9:d3:03
lxc.net.0.mtu = 1500
lxc.net.0.hwaddr = 00:16:3e:f9:d3:03
lxc.net.0.mtu = 1500
lxc.mount.entry = proc proc proc nodev,nosuid,noexec,hidepid=2 0 0
lxc.console.path = none
lxc.mount.entry = proc proc proc nodev,nosuid,noexec,hidepid=2 0 0
lxc.console.path = none
lxc.include = /var/lib/waydroid/lxc/waydroid/config_nodes
lxc.include = /var/lib/waydroid/lxc/waydroid/config_nodes
seccomp_profile = tools.config.tools_src + "/data/configs/waydroid.seccomp"
config_snippets = [ config_paths + "base" ]
seccomp_profile = tools.config.tools_src + "/data/configs/waydroid.seccomp"
config_snippets = [ config_paths + "base" ]
- # lxc v1 is a bit special because some options got renamed later
- if lxc_ver == 1:
+ # lxc v1 and v2 are bit special because some options got renamed later
+ if lxc_ver <= 2:
config_snippets.append(config_paths + "1")
else:
config_snippets.append(config_paths + "1")
else:
- for ver in range(2, 5):
+ for ver in range(3, 5):
snippet = config_paths + str(ver)
if lxc_ver >= ver and os.path.exists(snippet):
config_snippets.append(snippet)
snippet = config_paths + str(ver)
if lxc_ver >= ver and os.path.exists(snippet):
config_snippets.append(snippet)