From dabe1c42f9724ab030dea7fc1db1c924d21a8a6a Mon Sep 17 00:00:00 2001 From: jyxent Date: Fri, 13 May 2016 21:44:03 -0600 Subject: [PATCH] Fix the test to use the variable Signed-off-by: Manuel Amador (Rudd-O) Signed-off-by: Brian Behlendorf Closes #4645 --- contrib/dracut/90zfs/parse-zfs.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"