Fix the test to use the variable

Signed-off-by: Manuel Amador (Rudd-O) <rudd-o@rudd-o.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4645
This commit is contained in:
jyxent 2016-05-13 21:44:03 -06:00 committed by Brian Behlendorf
parent a9bb2b6827
commit dabe1c42f9
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ esac
if [ ${wait_for_zfs} -eq 1 ]; then if [ ${wait_for_zfs} -eq 1 ]; then
ln -s /dev/null /dev/root 2>/dev/null ln -s /dev/null /dev/root 2>/dev/null
initqueuedir="${hookdir}/initqueue/finished" initqueuedir="${hookdir}/initqueue/finished"
test -d initqueuedir || { test -d "${initqueuedir}" || {
initqueuedir="${hookdir}/initqueue-finished" initqueuedir="${hookdir}/initqueue-finished"
} }
echo '[ -e /dev/zfs ]' > "${initqueuedir}/zfs.sh" echo '[ -e /dev/zfs ]' > "${initqueuedir}/zfs.sh"