]> granicus.if.org Git - zfs/commitdiff
Fix the test to use the variable
authorjyxent <jordanp@gmail.com>
Sat, 14 May 2016 03:44:03 +0000 (21:44 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 14 May 2016 03:44:03 +0000 (20:44 -0700)
Signed-off-by: Manuel Amador (Rudd-O) <rudd-o@rudd-o.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4645

contrib/dracut/90zfs/parse-zfs.sh.in

index 74a426ebb17b8dd1be6558c9fdfc099fe570749f..6ca3165f45e4f130f4cd9fc1a062c9766addeeb8 100755 (executable)
@@ -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"