pmaports/hybris/lxc-android/lxcconfig.patch
Danct12 d0f5d25e4d
hybris/lxc-android: patched config for the latest lxc version (!330)
The config file for container from Halium repo is outdated, and will not
load on latest version of LXC, here is the error when you start the container:

postmarketos:~$ sudo lxc-start android
lxc-start: android: confile.c: parse_line: 2447 Unknown configuration key "lxc.rootfs"
lxc-start: android: parse.c: lxc_file_for_each_line_mmap: 142 Failed to parse config file "/var/lib/lxc/android/config" at line "lxc.rootfs = /var/lib/lxc/android/rootfs"
Failed to load config for android
lxc-start: android: tools/lxc_start.c: main: 264 Failed to create lxc_container
postmarketos:~$

This pull request updates the config file, but also use the latest
commit.
2019-04-21 22:52:22 +02:00

31 lines
745 B
Diff

diff --git a/var/lib/lxc/android/config b/var/lib/lxc/android/config
index 912b72c..af33a23 100644
--- a/var/lib/lxc/android/config
+++ b/var/lib/lxc/android/config
@@ -1,18 +1,17 @@
-lxc.rootfs = /var/lib/lxc/android/rootfs
-lxc.utsname = armhf
+lxc.rootfs.path = /var/lib/lxc/android/rootfs
+lxc.uts.name = armhf
-lxc.network.type = none
+lxc.net.0.type = none
-lxc.devttydir = lxc
-lxc.tty = 4
-lxc.pts = 1024
+lxc.tty.dir = lxc
+lxc.tty.max = 4
+lxc.pty.max = 1024
lxc.arch = armhf
lxc.cap.drop = mac_admin mac_override
-lxc.pivotdir = lxc_putold
lxc.hook.pre-start = /var/lib/lxc/android/pre-start.sh
-lxc.init_cmd = /init
+lxc.init.cmd = /init
-lxc.aa_profile = unconfined
+lxc.apparmor.profile = unconfined
lxc.autodev = 0