summaryrefslogtreecommitdiffstats
path: root/contrib/dracut/02zfsexpandknowledge
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dracut/02zfsexpandknowledge')
-rwxr-xr-xcontrib/dracut/02zfsexpandknowledge/module-setup.sh.in3
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"
}