From 424ac0bf800355932025ea5e586afcbdcd25d4dd Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Thu, 12 Mar 2020 02:35:11 +0800 Subject: [PATCH] Fix a potential syntax error Process substitution is not POSIX standard syntax, so if bash is configured to strictly follow POSIC, this will fail. Just use a POSIX friendly syntax instead. Fixes: bz1708321 Signed-off-by: Kairui Song Acked-by: Lianbo Jiang --- dracut-module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index b4cfe0e..7a2c7b4 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -188,7 +188,7 @@ kdump_handle_mulitpath_route() { _rule="" _max_weight=0 _weight=0 fi done >> ${initdir}/etc/cmdline.d/45route-static.conf\ - < <(/sbin/ip $_ipv6_flag route show) + <<< "$(/sbin/ip $_ipv6_flag route show)" [[ -n $_rule ]] && echo $_rule >> ${initdir}/etc/cmdline.d/45route-static.conf }