From 9eff25bf62e8fdab69e4c5c8d3eee6b5697f0649 Mon Sep 17 00:00:00 2001 From: emersonbusson <93008583+emersonbusson@users.noreply.github.com> Date: Fri, 18 Sep 2026 09:59:24 +0000 Subject: [PATCH 1/2] fix(packaging): make systemd/udev reloads resilient in postinst Ensures that daemon reloads fail gracefully and do not block package installation in chroot/container environments where daemons might not be running. --- packaging/debian/postinst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 packaging/debian/postinst diff --git a/packaging/debian/postinst b/packaging/debian/postinst new file mode 100755 index 000000000..730c172dc --- /dev/null +++ b/packaging/debian/postinst @@ -0,0 +1,23 @@ +#!/bin/bash +set -euo pipefail + +if [ "${1:-}" = "configure" ]; then + if command -v systemctl >/dev/null 2>&1; then + if [ -d /run/systemd/system ]; then + echo "Reloading systemd daemon..." + systemctl daemon-reload || true + else + echo "systemd is not running. Skipping daemon-reload." + fi + fi + + if command -v udevadm >/dev/null 2>&1; then + if [ -d /run/udev ]; then + echo "Reloading udev rules..." + udevadm control --reload-rules || true + udevadm trigger || true + else + echo "udev is not running. Skipping udev rules reload." + fi + fi +fi From ce0bed0198ac491bc30baa23ce5f738417fef1ea Mon Sep 17 00:00:00 2001 From: emersonbusson <93008583+emersonbusson@users.noreply.github.com> Date: Fri, 18 Sep 2026 10:13:10 +0000 Subject: [PATCH 2/2] fix(packaging): make systemd/udev reloads resilient in postinst Ensures that daemon reloads fail gracefully and do not block package installation in chroot/container environments where daemons might not be running.