From e911bd6861440459601ddffae5330af4a5a515db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Sch=C3=A4fer?= Date: Fri, 18 Jul 2025 10:35:32 +0200 Subject: [PATCH] Fix dracut code to be POSIX compliant The redirect type "< <(...)" is not POSIX complians and leads to a syntax error in dracut which calls bash as "sh" leading it to be restricted to POSIX only --- dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh b/dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh index 3d32b779..b4c1b7f1 100755 --- a/dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh +++ b/dracut/modules.d/90kiwi-dump/kiwi-dump-image.sh @@ -54,8 +54,8 @@ function sort_disk_entries { fi count=$((count + 1)) done - readarray -td '' list_items_sorted \ - < <(printf '%s\0' "${device_array[@]}" | sort -z) + printf '%s\0' "${device_array[@]}" | sort -z > list_items_sorted.txt + readarray -td '' list_items_sorted < list_items_sorted.txt echo "${list_items_sorted[*]}" }