From 8826dbb50ea78956e7187cb85e6c360f7bf892fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Blanc?= Date: Fri, 28 Aug 2026 10:40:04 +0200 Subject: [PATCH] debian: Add udev rule triggering in postinst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Most users expect their fastrpc use cases to work after installation of fastrpc-support without retriggered udev rules, so we trigger the fastrpc udev rules in the postinst script (dh_installudev doesn't do it). Signed-off-by: Michaƫl Blanc --- debian/fastrpc-support.postinst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 debian/fastrpc-support.postinst diff --git a/debian/fastrpc-support.postinst b/debian/fastrpc-support.postinst new file mode 100644 index 0000000..e10509a --- /dev/null +++ b/debian/fastrpc-support.postinst @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +#DEBHELPER# + +# retrigger udev rules for fastrpc dev nodes, this must happen +# after systemd-sysusers is called, as it may create the fastrpc group, +# which is required by these udev rules +if [ "$1" = "configure" ] && [ -z "$DPKG_ROOT" ]; then + if which -s udevadm ; then + for f in $(find /dev -name 'fastrpc-*' -maxdepth 1); do + udevadm trigger --subsystem-match=misc --action=add --name-match="$f" || true + done + udevadm trigger --subsystem-match=dma_heap --action=add || true + fi +fi