aboutsummaryrefslogtreecommitdiffstats
path: root/dracut
diff options
context:
space:
mode:
authorOleg Stepura <[email protected]>2011-09-29 23:59:07 +0300
committerBrian Behlendorf <[email protected]>2011-09-29 15:36:20 -0700
commit6ebd8ef103c3ed4739987f36d77874f6953af89f (patch)
tree2d52a5e2beac0a9c731e0aadb24f66ff6c5777b4 /dracut
parentbaab0630167f7539483af0f277aa6eeff39490d6 (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')
-rwxr-xr-xdracut/90zfs/parse-zfs.sh.in2
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