fix dracut dependencies

The "kpatch install" command is broken because the kpatch script has
some missing dependencies in the initramfs.  Make sure the new
dependencies (readelf and awk) are added to the initramfs.
This commit is contained in:
Josh Poimboeuf 2014-12-03 16:04:04 -06:00
parent f817265c5a
commit 6cdb5011c5
1 changed files with 3 additions and 3 deletions

View File

@ -19,11 +19,11 @@ install() {
# install kpatch script
inst_any -d /usr/sbin/kpatch /usr/local/sbin/kpatch /usr/sbin/kpatch
# install insmod (needed by kpatch script)
# install kpatch script dependencies
inst_symlink /usr/sbin/insmod
# install dirname (needed by kpatch script)
inst /usr/bin/dirname
inst /usr/bin/readelf
inst /usr/bin/awk
# install core module
inst_any -d /usr/lib/modules/$kernel/extra/kpatch/kpatch.ko /usr/local/lib/modules/$kernel/extra/kpatch/kpatch.ko /usr/lib/modules/$kernel/extra/kpatch/kpatch.ko /usr/lib/kpatch/$kernel/kpatch.ko /usr/local/lib/kpatch/$kernel/kpatch.ko