From e3d65e6c70d36c95001a60828d02440151e29992 Mon Sep 17 00:00:00 2001
From: Ark74 <ark@switnet.org>
Date: Thu, 6 Jul 2023 21:59:01 -0600
Subject: [PATCH] debian-installer: filter unsupported mediums for missing ld
 on arm builds

---
 helpers/DATA/debian-installer/chmod_755_ld-linux2.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helpers/DATA/debian-installer/chmod_755_ld-linux2.patch b/helpers/DATA/debian-installer/chmod_755_ld-linux2.patch
index 7d226adb..d1f7ed7f 100644
--- a/helpers/DATA/debian-installer/chmod_755_ld-linux2.patch
+++ b/helpers/DATA/debian-installer/chmod_755_ld-linux2.patch
@@ -7,7 +7,7 @@ index c073a32..cace03d 100644
  ifeq ($(DEB_HOST_ARCH_OS),linux)
  ifdef KERNELVERSION
 +ifneq ($(DEB_HOST_ARCH),ppc64el)
-+	chmod 755 $(TREE)/lib/$(DEB_HOST_MULTIARCH)/ld-linux*
++	find $(TREE)/lib/$(DEB_HOST_MULTIARCH)/ -name "ld-linux*" | xargs -r chmod 755
 +endif
 +ifeq ($(DEB_HOST_ARCH),ppc64el)
 +	chmod 755 $(TREE)/lib/$(DEB_HOST_MULTIARCH)/ld*.so*
-- 
GitLab