From a82b8eedb78a19e3f02130204f97bf084fddc80b Mon Sep 17 00:00:00 2001 From: CyberMind Date: Fri, 22 May 2026 08:01:12 +0200 Subject: [PATCH] =?UTF-8?q?fix(secubox-zigbee):=20v2.5.7=20=E2=80=94=20ude?= =?UTF-8?q?v=20RUN+=3D=20uses=20`lxc-device=20-n=20zigbee=20add`,=20not=20?= =?UTF-8?q?`add=20zigbee`=20(#335)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The v2.5.5 udev rule called `lxc-device add zigbee /dev/%k`, but lxc-device(1) syntax is `lxc-device -n add ` — the v2.5.5 form makes lxc-device parse `add` as the container name and exits with "Container add is not running". Confirmed on the live board during the v2.5.5 hotfix recovery: the parent agent had to fall back to manual `-n zigbee add` to push the device into the running LXC. Without this fix the hotplug branch silently no-ops — a re-plugged dongle stays invisible inside the LXC and z2m crash-loops again until an operator reboots the container. Co-authored-by: CyberMind-FR --- packages/secubox-zigbee/debian/changelog | 12 ++++++++++++ packages/secubox-zigbee/lib/zigbee/install-lxc.sh | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/secubox-zigbee/debian/changelog b/packages/secubox-zigbee/debian/changelog index 9725a991..5c8485f5 100644 --- a/packages/secubox-zigbee/debian/changelog +++ b/packages/secubox-zigbee/debian/changelog @@ -1,3 +1,15 @@ +secubox-zigbee (2.5.7-1~bookworm1) bookworm; urgency=medium + + * lib/zigbee/install-lxc.sh: udev RUN+= now invokes + `lxc-device -n zigbee add /dev/%k` instead of the wrong + `lxc-device add zigbee /dev/%k` form shipped by v2.5.5. The + v2.5.5 syntax made lxc-device parse `add` as the container name + ("Container add is not running" was the actual error seen on + the live board), so hotplug events silently failed and a + re-plugged dongle never landed in the running LXC. + + -- Gerald Kerma Fri, 22 May 2026 06:05:00 +0000 + secubox-zigbee (2.5.6-1~bookworm1) bookworm; urgency=medium * lib/zigbee/install-lxc.sh: zigbee2mqtt.service gains two diff --git a/packages/secubox-zigbee/lib/zigbee/install-lxc.sh b/packages/secubox-zigbee/lib/zigbee/install-lxc.sh index 0ab3a47b..75a3025a 100755 --- a/packages/secubox-zigbee/lib/zigbee/install-lxc.sh +++ b/packages/secubox-zigbee/lib/zigbee/install-lxc.sh @@ -376,17 +376,17 @@ install_udev_rule() { SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", \ ATTRS{product}=="SONOFF Dongle Lite MG21", \ SYMLINK+="secubox-zgb", MODE="0660", GROUP="dialout", \ - RUN+="/bin/sh -c '/usr/bin/lxc-device add zigbee /dev/%k || true'" + RUN+="/bin/sh -c '/usr/bin/lxc-device -n zigbee add /dev/%k || true'" # Sonoff Zigbee 3.0 USB Plus (CC2652P) SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="55d4", \ SYMLINK+="secubox-zgb", MODE="0660", GROUP="dialout", \ - RUN+="/bin/sh -c '/usr/bin/lxc-device add zigbee /dev/%k || true'" + RUN+="/bin/sh -c '/usr/bin/lxc-device -n zigbee add /dev/%k || true'" # ConBee II (fallback) SUBSYSTEM=="tty", ATTRS{idVendor}=="1cf1", ATTRS{idProduct}=="0030", \ SYMLINK+="secubox-zgb", MODE="0660", GROUP="dialout", \ - RUN+="/bin/sh -c '/usr/bin/lxc-device add zigbee /dev/%k || true'" + RUN+="/bin/sh -c '/usr/bin/lxc-device -n zigbee add /dev/%k || true'" # Generic CP210x without the SONOFF descriptor — secondary symlink only SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", \