[PATCH] Expose build configuration during execution of chroot hooks
Hello,
Please accept this simple patch that exposes build configuration to chroot hooks by copying the config directory to chroot/root/config and removing it before and after each hook is executed. This allows for smarter hooks that are configurable.
Cheers,
--
Cody A.W. Somerville
Software Systems Release Engineer
Foundations Team
Custom Engineering Solutions Group
Canonical OEM Services
Phone: +1-781-850-2087
Cell: +1-506-471-8402
Email: cody.somerville@canonical.com
=== modified file 'helpers/lh_chroot_local-hooks'
--- helpers/lh_chroot_local-hooks 2009-09-02 18:50:17 +0000
+++ helpers/lh_chroot_local-hooks 2009-10-22 07:57:43 +0000
@@ -40,6 +40,8 @@
# Processing local-hooks
if Find_files config/chroot_local-hooks/*
then
+ cp -r config chroot/root
+
for HOOK in config/chroot_local-hooks/*
do
# Copying hook
@@ -58,6 +60,8 @@
rm -f chroot/root/"$(basename ${HOOK})"
done
+ rm -rf chroot/root/config
+
# Creating stage file
Create_stagefile .stage/chroot_local-hooks
fi
Reply to: