dracut-functions.sh: check for .kernelmodseen dir, before using it

master
Harald Hoyer 2012-03-02 12:01:49 +01:00
parent af8c8ed9f6
commit 6a2c23d125
1 changed files with 2 additions and 1 deletions

View File

@ -994,7 +994,8 @@ install_kmod_with_fw() {
fi
fi

> "$initdir/.kernelmodseen/${1##*/}"
[ -d "$initdir/.kernelmodseen" ] && \
> "$initdir/.kernelmodseen/${1##*/}"

inst_simple "$1" "/lib/modules/$kernel/${1##*/lib/modules/$kernel/}" \
|| return $?