From d2c283d7fcd6a1f778d362e7cda73c39988e0d0f Mon Sep 17 00:00:00 2001 From: Alfred Neumayer Date: Sat, 7 May 2022 14:18:25 +0200 Subject: [PATCH] lxc: Optionally bind-mount NFC config 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/helpers/lxc.py b/tools/helpers/lxc.py index d26b184..7a9988e 100644 --- a/tools/helpers/lxc.py +++ b/tools/helpers/lxc.py @@ -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") + # NFC config + make_entry("/system/etc/libnfc-nci.conf", options="bind,optional 0 0") + return nodes -- 2.47.3