Skip to content

Commit

Permalink
Fix 'unexpected operator' bashism
Browse files Browse the repository at this point in the history
The == operator is specific to bash, replace it with the more
correct = operator for sh.  This bug can prevent correct booting
when using a zfs root pool.

Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#416
  • Loading branch information
Oleg Stepura authored and behlendorf committed Sep 29, 2011
1 parent baab063 commit 6ebd8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dracut/90zfs/parse-zfs.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ esac

# Make sure Dracut is happy that we have a root and will wait for ZFS
# modules to settle before mounting.
if [ "${wait_for_zfs}" == "1" ]; then
if [ "${wait_for_zfs}" = "1" ]; then
ln -s /dev/null /dev/root 2>/dev/null
echo '[ -e /dev/zfs ]' > $hookdir/initqueue/finished/zfs.sh
fi

0 comments on commit 6ebd8ef

Please sign in to comment.