From 8d02ccdc12d1a2485374352209df631c0a868378 Mon Sep 17 00:00:00 2001 From: Paul Aurich Date: Sat, 18 May 2024 11:44:09 -0700 Subject: [PATCH] Copy iptables userspace modules independent of arch Fixes: 75ec1e3 ("Copy iptables (userspace) modules into the initramfs") --- debian/rules | 3 --- hooks/tailscale | 5 +++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/debian/rules b/debian/rules index 61564dc..7e295f6 100755 --- a/debian/rules +++ b/debian/rules @@ -5,9 +5,6 @@ %: dh $@ -execute_after_dh_install: - sed -i -e 's,@DEB_HOST_MULTIARCH@,$(DEB_HOST_MULTIARCH),g' debian/tailscale-initramfs/usr/share/initramfs-tools/hooks/tailscale - execute_after_dh_fixperms: chmod 600 debian/tailscale-initramfs/etc/tailscale/initramfs/config diff --git a/hooks/tailscale b/hooks/tailscale index 5b32c85..45cfae0 100755 --- a/hooks/tailscale +++ b/hooks/tailscale @@ -32,8 +32,9 @@ copy_exec /bin/ip bin copy_exec /usr/sbin/iptables sbin copy_exec /usr/sbin/ip6tables sbin -for mod in /usr/lib/@DEB_HOST_MULTIARCH@/xtables/*.so; do - copy_exec "$mod" +for library in /usr/lib/*/xtables/*.so; do + [ -f "$library" ] || continue + copy_exec "$library" done copy_modules_dir kernel/net/ipv4/netfilter