zzzz99-remove-custom-hooks-from-airootfs.hook 586 B

123456789101112131415161718
  1. # remove from airootfs!
  2. # As a workaround for https://bugs.archlinux.org/task/49347 , remove pacman hooks specific to the ISO build process.
  3. # If not, they would be used when pacstrap is run in the live environment.
  4. [Trigger]
  5. Operation = Install
  6. Operation = Upgrade
  7. Operation = Remove
  8. Type = Package
  9. Target = *
  10. [Action]
  11. Description = Work around FS#49347 by removing custom pacman hooks that are only required during ISO build...
  12. When = PostTransaction
  13. Depends = sh
  14. Depends = coreutils
  15. Depends = grep
  16. Exec = /bin/sh -c "rm -- $(grep -Frl 'remove from airootfs' /etc/pacman.d/hooks/)"