From 6c66c52ecdc449cf16cff36ad5f65a92781b4d61 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 9 Feb 2022 19:30:52 -0500 Subject: [PATCH] Update zigbee2mqtt_container.sh --- ct/zigbee2mqtt_container.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ct/zigbee2mqtt_container.sh b/ct/zigbee2mqtt_container.sh index aa175e82..4e7d8c65 100644 --- a/ct/zigbee2mqtt_container.sh +++ b/ct/zigbee2mqtt_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)