Commit f560ec98 authored by Ophélie Gagnard's avatar Ophélie Gagnard

WIP: Makefile: Add building and installation of the dracut module.

parent 38193453
......@@ -48,4 +48,27 @@ install-no-dracut:
no-dracut: bin/metadata-collect-agent lib/fluentbit_wendelin.so bin/fluent-bit
.PHONY: no-dracut install-no-dracut
clean-no-dracut:
rm -r build/
rm -r bin/
rm -r lib/
dracut.module/90metadata-collect/flb.conf:
install flb.conf dracut.module/90metadata-collect/flb.conf
dracut.module/90metadata-collect/metadata-collect-agent:
install bin/metadata-collect-agent dracut.module/90metadata-collect/metadata-collect-agent
dracut.module/90metadata-collect/fluentbit_wendelin.so:
install lib/fluentbit_wendelin.so dracut.module/90metadata-collect/fluentbit_wendelin.so
dracut.module/90metadata-collect/fluent-bit:
install bin/fluent-bit dracut.module/90metadata-collect-agent/fluent-bit
include collect-sh-template.mk
dracut.module/90metadata-collect/collect.sh:
echo "$${collect_sh}" >> 90metadata-collect/collect.sh
dracut-module: dracut.module/90metadata-collect/collect.sh dracut.module/90metadata-collect/flb.conf dracut.module/90metadata-collect/metadata-collect-agent dracut.module/90metadata-collect/fluentbit_wendelin.so dracut.module/90metadata-collect/fluent-bit
install-dracut-module:
install -d /usr/lib/dracut/modules.d/90metadata-collect
install dracut.module/90metadata-collect/* /usr/lib/dracut.module/90metadata-collect/
.PHONY: no-dracut install-no-dracut clean-no-dracut dracut-module install-dracut-module
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment