From 50816947a79f9f407e237cca563a14f2a33b76d5 Mon Sep 17 00:00:00 2001 From: "Cody A.W. Somerville" Date: Thu, 21 Jul 2011 18:35:56 +0200 Subject: Making config tree available to chroot hooks. --- scripts/build/lb_chroot_hooks | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/build/lb_chroot_hooks b/scripts/build/lb_chroot_hooks index 5c4df7d6b..2baf77068 100755 --- a/scripts/build/lb_chroot_hooks +++ b/scripts/build/lb_chroot_hooks @@ -69,6 +69,11 @@ then # Restoring cache Restore_cache cache/packages_chroot + # Make build config available to chroot hooks. + mkdir -p chroot/root/config + mount --bind config/ chroot/root/config + mount -o remount,ro chroot/root/config + for _HOOK in config/hooks/*.chroot do # Copying hook @@ -87,6 +92,10 @@ then rm -f chroot/root/"$(basename ${_HOOK})" done + # Remove bind mount of build config inside chroot. + umount chroot/root/config/ + rmdir chroot/root/config/ + # Saving cache Save_cache cache/packages_chroot -- cgit v1.2.3