diff options
author | Aron Xu <[email protected]> | 2017-02-01 06:25:49 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-01-31 14:25:49 -0800 |
commit | 3d91261599447833fb96e99055d1108ea2b0c171 (patch) | |
tree | aefca10e4e31a8b6a082fd62f75e7569d5660255 /contrib/dracut | |
parent | b81a3ddc3207dd832bd236f2ff20d409a0aee0b4 (diff) |
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 <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Aron Xu <[email protected]>
Closes #5712
Diffstat (limited to 'contrib/dracut')
-rwxr-xr-x | contrib/dracut/02zfsexpandknowledge/module-setup.sh.in | 3 |
1 files changed, 2 insertions, 1 deletions
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" } |