1.1--- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2+++ b/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook Fri May 31 17:30:09 2024 -0400
1.3@@ -0,0 +1,18 @@
1.4+# remove from airootfs!
1.5+# As a workaround for https://bugs.archlinux.org/task/49347 , remove pacman hooks specific to the ISO build process.
1.6+# If not, they would be used when pacstrap is run in the live environment.
1.7+
1.8+[Trigger]
1.9+Operation = Install
1.10+Operation = Upgrade
1.11+Operation = Remove
1.12+Type = Package
1.13+Target = *
1.14+
1.15+[Action]
1.16+Description = Work around FS#49347 by removing custom pacman hooks that are only required during ISO build...
1.17+When = PostTransaction
1.18+Depends = sh
1.19+Depends = coreutils
1.20+Depends = grep
1.21+Exec = /bin/sh -c "rm -- $(grep -Frl 'remove from airootfs' /etc/pacman.d/hooks/)"