aboutsummaryrefslogtreecommitdiffstats
path: root/initcpio/hook
diff options
context:
space:
mode:
Diffstat (limited to 'initcpio/hook')
-rw-r--r--initcpio/hook/paccache11
1 files changed, 11 insertions, 0 deletions
diff --git a/initcpio/hook/paccache b/initcpio/hook/paccache
new file mode 100644
index 0000000..8aa2fc0
--- /dev/null
+++ b/initcpio/hook/paccache
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+run_latehook() {
+ local newroot="/new_root/"
+
+ if [[ -n "${paccache}" ]]; then
+ msg ":: Adding paccache host '${paccache}' to pacredir.conf..."
+ echo "pacserve hosts = ${paccache}" >> ${newroot}/etc/pacredir.conf
+ echo "pacdbserve hosts = ${paccache}" >> ${newroot}/etc/pacredir.conf
+ fi
+}