From 89d442a74ab0b3fc49f838c15f3f722f1be74720 Mon Sep 17 00:00:00 2001 From: nippy Date: Sun, 12 Apr 2026 18:11:38 +0200 Subject: live --- .../etc/pacman.d/hooks/reflector-mirrorlist.hook | 11 +++++++++++ .../zzzz99-remove-custom-hooks-from-airootfs.hook | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 releng/airootfs/etc/pacman.d/hooks/reflector-mirrorlist.hook create mode 100644 releng/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook (limited to 'releng/airootfs/etc/pacman.d/hooks') diff --git a/releng/airootfs/etc/pacman.d/hooks/reflector-mirrorlist.hook b/releng/airootfs/etc/pacman.d/hooks/reflector-mirrorlist.hook new file mode 100644 index 0000000..312c41e --- /dev/null +++ b/releng/airootfs/etc/pacman.d/hooks/reflector-mirrorlist.hook @@ -0,0 +1,11 @@ +[Trigger] +Operation = Install +Operation = Upgrade +Type = Package +Target = pacman-mirrorlist + +[Action] +Description = Updating mirrorlist with reflector (Hungary)... +When = PostTransaction +Depends = reflector +Exec = /usr/bin/reflector -c HU --protocol https --sort rate --latest 20 --download-timeout 5 --threads 20 --save /etc/pacman.d/mirrorlist diff --git a/releng/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook b/releng/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook new file mode 100644 index 0000000..8dfb943 --- /dev/null +++ b/releng/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook @@ -0,0 +1,18 @@ +# remove from airootfs! +# As a workaround for https://bugs.archlinux.org/task/49347 , remove pacman hooks specific to the ISO build process. +# If not, they would be used when pacstrap is run in the live environment. + +[Trigger] +Operation = Install +Operation = Upgrade +Operation = Remove +Type = Package +Target = * + +[Action] +Description = Work around FS#49347 by removing custom pacman hooks that are only required during ISO build... +When = PostTransaction +Depends = sh +Depends = coreutils +Depends = grep +Exec = /bin/sh -c "rm -- $(grep -Frl 'remove from airootfs' /etc/pacman.d/hooks/)" -- cgit v1.3