From 3d91261599447833fb96e99055d1108ea2b0c171 Mon Sep 17 00:00:00 2001 From: Aron Xu Date: Wed, 1 Feb 2017 06:25:49 +0800 Subject: contrib/dracut: fix syntax error in module-setup.sh The dracut/02zfsexpandknowledge/module-setup.sh.in has a syntax error which makes the script unusable by a POSIX compliant shell like Dash on Debian based systems. Reviewed-by: Giuseppe Di Natale Reviewed-by: George Melikov Signed-off-by: Aron Xu Closes #5712 --- contrib/dracut/02zfsexpandknowledge/module-setup.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in b/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in index e694ae0d0..981beb301 100755 --- a/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in +++ b/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in @@ -22,6 +22,7 @@ get_pool_devices() { poolconfigoutput=$(cat "$poolconfigtemp") dinfo "zfsexpandknowledge: pool $1 cannot be listed: $poolconfigoutput" else + cat "$poolconfigtemp" | awk -F '\t' '/\t\/dev/ { print $2 }' | \ while read pooldev ; do if [ -n "$pooldev" -a -e "$pooldev" ] ; then if [ -h "$pooldev" ] ; then @@ -32,7 +33,7 @@ get_pool_devices() { dinfo "zfsexpandknowledge: pool $1 has device $pooldev (which resolves to $resolved)" echo "$resolved" fi - done < <(cat "$poolconfigtemp" | awk -F '\t' '/\t\/dev/ { print $2 }') + done fi rm -f "$poolconfigtemp" } -- cgit v1.2.3