Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/configs/releng/airootfs/etc/pacman.d/hooks/40-locale-gen.hook
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2021-01-27 11:31:02 +0200
committernl6720 <nl6720@gmail.com>2021-01-31 11:34:56 +0200
commitf9a7b206a58a353eac2d26b464068cfe15f5e461 (patch)
tree0bc9c98ac232964a102e7ad9f41b477234f6a1c1 /configs/releng/airootfs/etc/pacman.d/hooks/40-locale-gen.hook
parenta46c74087fe91c35589dcf1082128e282ad8c9be (diff)
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 .
Diffstat (limited to 'configs/releng/airootfs/etc/pacman.d/hooks/40-locale-gen.hook')
-rw-r--r--configs/releng/airootfs/etc/pacman.d/hooks/40-locale-gen.hook13
1 files changed, 13 insertions, 0 deletions
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"