Fix 'unexpected operator' bashism

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 <behlendorf1@llnl.gov>
Closes #416
This commit is contained in:
Oleg Stepura 2011-09-29 23:59:07 +03:00 committed by Brian Behlendorf
parent baab063016
commit 6ebd8ef103
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ esac
# Make sure Dracut is happy that we have a root and will wait for ZFS # Make sure Dracut is happy that we have a root and will wait for ZFS
# modules to settle before mounting. # 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 ln -s /dev/null /dev/root 2>/dev/null
echo '[ -e /dev/zfs ]' > $hookdir/initqueue/finished/zfs.sh echo '[ -e /dev/zfs ]' > $hookdir/initqueue/finished/zfs.sh
fi fi