Skip to content

Commit

Permalink
Copy iptables userspace modules independent of arch
Browse files Browse the repository at this point in the history
Fixes: 75ec1e3 ("Copy iptables (userspace) modules into the initramfs")
  • Loading branch information
darkrain42 committed May 18, 2024
1 parent 9bc552b commit 8d02ccd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 0 additions & 3 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 3 additions & 2 deletions hooks/tailscale
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d02ccd

Please sign in to comment.