Add dirname to initramfs

kpatch script need dirname to git SCRIPTDIR. But dracut won't copy it to
initramfs by default.

Signed-off-by: Madper Xie <cxie@redhat.com>
This commit is contained in:
Madper Xie 2014-05-06 17:43:49 +08:00
parent c41319e1a5
commit b74395c537

View File

@ -22,6 +22,9 @@ install() {
# install insmod (needed by kpatch script)
inst_symlink /usr/sbin/insmod
# install dirname (needed by kpatch script)
inst /usr/bin/dirname
# install core module
inst_any -d /usr/lib/modules/$kernel/kpatch/kpatch.ko /usr/local/lib/modules/$kernel/kpatch/kpatch.ko /usr/lib/modules/$kernel/kpatch/kpatch.ko