]> glassweightruler.freedombox.rocks Git - waydroid.git/commitdiff
lxc: Optionally bind-mount NFC config
authorAlfred Neumayer <dev.beidl@gmail.com>
Sat, 7 May 2022 12:18:25 +0000 (14:18 +0200)
committerErfan Abdi <erfangplus@gmail.com>
Wed, 6 Jul 2022 18:13:43 +0000 (22:43 +0430)
Devices with libnfc-nci might have their NFC HAL crash when
the config doesn't exist or contains invalid data. Fix it.

tools/helpers/lxc.py

index d26b184cf466479c3870f04631ee32bbac9359cf..7a9988e9815ce946e05b210f6c6028a137005982 100644 (file)
@@ -121,6 +121,9 @@ def generate_nodes_lxc_config(args):
     for n in glob.glob("/tmp/run-*"):
         make_entry(n, options="rbind,create=dir,optional 0 0")
 
     for n in glob.glob("/tmp/run-*"):
         make_entry(n, options="rbind,create=dir,optional 0 0")
 
+    # NFC config
+    make_entry("/system/etc/libnfc-nci.conf", options="bind,optional 0 0")
+
     return nodes
 
 
     return nodes