Skip to content

Instantly share code, notes, and snippets.

@kugland
Created December 3, 2020 07:58
Show Gist options
  • Save kugland/1ba33095e6b3331c46b5238dfd569150 to your computer and use it in GitHub Desktop.
Save kugland/1ba33095e6b3331c46b5238dfd569150 to your computer and use it in GitHub Desktop.
Pacman Hook: Make sure baloo executables are links to /bin/true
# /usr/share/libalpm/hooks/remove-baloo.hook
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = *
[Action]
Description = Make sure baloo executables are links to /bin/true
Depends = coreutils
When = PostTransaction
Exec = /bin/sh -c 'for f in /usr/lib/baloorunner /usr/bin/baloo_file /usr/bin/baloo_file_extractor /usr/bin/baloo_filemetadata_temp_extractor; do /bin/ln -sf /bin/true "$f"; done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment