From 1f70b58b0fd1fa117eb67ab2bc17a92eb31b1d33 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez <ryan.gonzalez@collabora.com> Date: Wed, 12 Jan 2022 19:04:44 -0600 Subject: [PATCH] Remove '-execdir +' usage for compatibility with rust-findutils https://phabricator.apertis.org/T8219 Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com> --- debian/changelog | 1 + debian/extra/initramfs-tools/hooks/udev | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 25d13ec2..a5034468 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ systemd (247.3-6+apertis2) apertis; urgency=medium * d/p/basic-linux-Sync-if_arp.h-with-Linux-5.14.patch: Fix compilation on kernel 5.14+ + * Remove '-execdir +' usage for compatibility with rust-findutils -- Ryan Gonzalez <ryan.gonzalez@collabora.com> Thu, 13 Jan 2022 15:27:00 -0600 diff --git a/debian/extra/initramfs-tools/hooks/udev b/debian/extra/initramfs-tools/hooks/udev index d7f26c42..b624e5f6 100755 --- a/debian/extra/initramfs-tools/hooks/udev +++ b/debian/extra/initramfs-tools/hooks/udev @@ -22,9 +22,9 @@ cp -p /etc/udev/udev.conf "$DESTDIR/etc/udev/" # copy .link files containing interface naming definitions mkdir -p "$DESTDIR/lib/systemd/network/" -find -L /lib/systemd/network -name '*.link' -execdir cp -pt "$DESTDIR/lib/systemd/network/" '{}' + +find -L /lib/systemd/network -name '*.link' -print0 | xargs -0r cp -pt "$DESTDIR/lib/systemd/network/" if [ -d /etc/systemd/network ]; then - find -L /etc/systemd/network -name '*.link' -execdir cp -pt "$DESTDIR/lib/systemd/network/" '{}' + + find -L /etc/systemd/network -name '*.link' -print0 | xargs -0r cp -pt "$DESTDIR/lib/systemd/network/" fi mkdir -p "$DESTDIR/lib/udev/rules.d/" -- GitLab