From: jyxent Date: Sat, 14 May 2016 03:44:03 +0000 (-0600) Subject: Fix the test to use the variable X-Git-Tag: zfs-0.7.0-rc1~158 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dabe1c42f9724ab030dea7fc1db1c924d21a8a6a;p=zfs Fix the test to use the variable Signed-off-by: Manuel Amador (Rudd-O) Signed-off-by: Brian Behlendorf Closes #4645 --- diff --git a/contrib/dracut/90zfs/parse-zfs.sh.in b/contrib/dracut/90zfs/parse-zfs.sh.in index 74a426ebb..6ca3165f4 100755 --- a/contrib/dracut/90zfs/parse-zfs.sh.in +++ b/contrib/dracut/90zfs/parse-zfs.sh.in @@ -56,7 +56,7 @@ esac if [ ${wait_for_zfs} -eq 1 ]; then ln -s /dev/null /dev/root 2>/dev/null initqueuedir="${hookdir}/initqueue/finished" - test -d initqueuedir || { + test -d "${initqueuedir}" || { initqueuedir="${hookdir}/initqueue-finished" } echo '[ -e /dev/zfs ]' > "${initqueuedir}/zfs.sh"