From 080d979346baeb9390aba636add352b2c47c61fc Mon Sep 17 00:00:00 2001 From: eshanized Date: Mon, 30 Dec 2024 03:09:28 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(hooks):=20get=20rid=20of=20d?= =?UTF-8?q?efault=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../etc/pacman.d/hooks/uncomment-mirrors.hook | 13 ------------- ...zz99-remove-custom-hooks-from-airootfs.hook | 18 ------------------ 2 files changed, 31 deletions(-) delete mode 100644 archiso/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook delete mode 100644 archiso/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook diff --git a/archiso/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook b/archiso/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook deleted file mode 100644 index 342aa95..0000000 --- a/archiso/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook +++ /dev/null @@ -1,13 +0,0 @@ -# remove from airootfs! -[Trigger] -Operation = Install -Operation = Upgrade -Type = Package -Target = pacman-mirrorlist - -[Action] -Description = Uncommenting all mirrors in /etc/pacman.d/mirrorlist... -When = PostTransaction -Depends = pacman-mirrorlist -Depends = sed -Exec = /usr/bin/sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist diff --git a/archiso/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook b/archiso/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook deleted file mode 100644 index 8dfb943..0000000 --- a/archiso/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook +++ /dev/null @@ -1,18 +0,0 @@ -# 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/)"