From f9a7b206a58a353eac2d26b464068cfe15f5e461 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Wed, 27 Jan 2021 11:31:02 +0200 Subject: configs/releng: move locale-gen from customize_airootfs.sh to a pacman hook This finally removes customize_airootfs.sh from releng. Fixes https://gitlab.archlinux.org/archlinux/archiso/-/issues/21 . --- .../releng/airootfs/etc/pacman.d/hooks/40-locale-gen.hook | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 configs/releng/airootfs/etc/pacman.d/hooks/40-locale-gen.hook (limited to 'configs/releng/airootfs/etc/pacman.d') diff --git a/configs/releng/airootfs/etc/pacman.d/hooks/40-locale-gen.hook b/configs/releng/airootfs/etc/pacman.d/hooks/40-locale-gen.hook new file mode 100644 index 0000000..82dd199 --- /dev/null +++ b/configs/releng/airootfs/etc/pacman.d/hooks/40-locale-gen.hook @@ -0,0 +1,13 @@ +# remove from airootfs! +[Trigger] +Operation = Install +Type = Package +Target = glibc + +[Action] +Description = Uncommenting en_US.UTF-8 locale and running locale-gen... +When = PostTransaction +Depends = glibc +Depends = sed +Depends = sh +Exec = /bin/sh -c "sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen && locale-gen" -- cgit v1.2.3-70-g09d2