diff options
author | Oleg Stepura <[email protected]> | 2011-09-29 23:59:07 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-09-29 15:36:20 -0700 |
commit | 6ebd8ef103c3ed4739987f36d77874f6953af89f (patch) | |
tree | 2d52a5e2beac0a9c731e0aadb24f66ff6c5777b4 /dracut/90zfs/parse-zfs.sh.in | |
parent | baab0630167f7539483af0f277aa6eeff39490d6 (diff) |
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 <[email protected]>
Closes #416
Diffstat (limited to 'dracut/90zfs/parse-zfs.sh.in')
-rwxr-xr-x | dracut/90zfs/parse-zfs.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut/90zfs/parse-zfs.sh.in b/dracut/90zfs/parse-zfs.sh.in index eaa452412..13697b945 100755 --- a/dracut/90zfs/parse-zfs.sh.in +++ b/dracut/90zfs/parse-zfs.sh.in @@ -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 |