From 4f4047a3f8927e58d79e396bdd032b9c24bd1f19 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Sun, 24 Jan 2021 17:29:01 +0200 Subject: configs/releng: move the mirror uncommenting sed command from customize_airootfs.sh to a pacman hook After pacman-mirrorlist is installed, /etc/pacman.d/hooks/uncomment-mirrors.hook will run a sed command which uncomments all Server lines in /etc/pacman.d/mirrorlist. This brings us another step closer to the complete removal of customize_airootfs.sh. Related to https://gitlab.archlinux.org/archlinux/archiso/-/issues/21 . --- .../airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 configs/releng/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook (limited to 'configs/releng/airootfs/etc/pacman.d/hooks') diff --git a/configs/releng/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook b/configs/releng/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook new file mode 100644 index 0000000..ad0b5ba --- /dev/null +++ b/configs/releng/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook @@ -0,0 +1,12 @@ +[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 -- cgit v1.2.3-70-g09d2