From e9e63c858d8539e13217946edc2cabb0d4d85df9 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 9 Feb 2022 19:58:24 -0500 Subject: [PATCH] Update zwavejs2mqtt_container.sh --- ct/zwavejs2mqtt_container.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ct/zwavejs2mqtt_container.sh b/ct/zwavejs2mqtt_container.sh index 3d42e6a5..2e908b54 100644 --- a/ct/zwavejs2mqtt_container.sh +++ b/ct/zwavejs2mqtt_container.sh @@ -149,6 +149,11 @@ LXC_CONFIG=/etc/pve/lxc/${CTID}.conf cat <> $LXC_CONFIG lxc.cgroup2.devices.allow: a lxc.cap.drop: +lxc.cgroup2.devices.allow: c 188:* rwm +lxc.cgroup2.devices.allow: c 189:* rwm +lxc.mount.entry: /dev/serial/by-id dev/serial/by-id none bind,optional,create=dir +lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file +lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file EOF MOUNT=$(pct mount $CTID | cut -d"'" -f 2)