From 6ebd8ef103c3ed4739987f36d77874f6953af89f Mon Sep 17 00:00:00 2001 From: Oleg Stepura Date: Thu, 29 Sep 2011 23:59:07 +0300 Subject: [PATCH] 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 Closes #416 --- dracut/90zfs/parse-zfs.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut/90zfs/parse-zfs.sh.in b/dracut/90zfs/parse-zfs.sh.in index eaa4524..13697b9 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 -- 1.8.3.1