diff options
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/lb_chroot_hooks | 9 |
1 files changed, 9 insertions, 0 deletions
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 |