diff --git a/scripts/debian/postinst.in b/scripts/debian/postinst.in index 425981b5..b0d5b305 100755 --- a/scripts/debian/postinst.in +++ b/scripts/debian/postinst.in @@ -68,6 +68,25 @@ if [ "$1" = "configure" ]; then esac fi clear + else + case $FALCO_DRIVER_CHOICE in + module | kmod ) + chosen_driver="kmod" + ;; + bpf | ebpf | eBPF ) + chosen_driver="bpf" + ;; + modern-bpf | modern-ebpf | modern-eBPF ) + chosen_driver="modern-bpf" + ;; + esac + case $FALCOCTL_ENABLED in + yes ) + ;; + no ) + systemctl --system mask falcoctl-artifact-follow.service || true + ;; + esac fi fi diff --git a/scripts/rpm/postinstall.in b/scripts/rpm/postinstall.in index 58ed2ec7..dbdf2d46 100755 --- a/scripts/rpm/postinstall.in +++ b/scripts/rpm/postinstall.in @@ -67,6 +67,25 @@ if [ $1 -ge 1 ]; then esac fi clear + else + case $FALCO_DRIVER_CHOICE in + module | kmod ) + chosen_driver="kmod" + ;; + bpf | ebpf | eBPF ) + chosen_driver="bpf" + ;; + modern-bpf | modern-ebpf | modern-eBPF ) + chosen_driver="modern-bpf" + ;; + esac + case $FALCOCTL_ENABLED in + yes ) + ;; + no ) + systemctl --system mask falcoctl-artifact-follow.service || true + ;; + esac fi fi