summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorRoland Clobus <rclobus@rclobus.nl>2021-01-23 21:26:09 +0100
committerRoland Clobus <rclobus@rclobus.nl>2021-01-23 21:26:09 +0100
commitdc1a03d053b4e857a351c406d03d15bc0224d88d (patch)
tree36cb5d4c290a5282e9a97db5301a7cb5d0bc313e /share
parent259fd735585afa401ab306af97886cb500f06613 (diff)
downloadvyos-live-build-dc1a03d053b4e857a351c406d03d15bc0224d88d.tar.gz
vyos-live-build-dc1a03d053b4e857a351c406d03d15bc0224d88d.zip
Reproducible fix for glibc
Diffstat (limited to 'share')
-rwxr-xr-xshare/hooks/normal/0500-reproducible-glibc.hook.chroot9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hooks/normal/0500-reproducible-glibc.hook.chroot b/share/hooks/normal/0500-reproducible-glibc.hook.chroot
new file mode 100755
index 000000000..6f15d5ce1
--- /dev/null
+++ b/share/hooks/normal/0500-reproducible-glibc.hook.chroot
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+# Remove the non-reproducible file that is created by ldconfig
+#
+# The file does not need to exist, see elf/cache.c:load_aux_cache
+# The file and folder will be recreated when needed, see elf/cache.c:save_aux_cache
+rm -fr /var/cache/ldconfig