summaryrefslogtreecommitdiff
path: root/helpers/lh_includechroot
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_includechroot')
-rwxr-xr-xhelpers/lh_includechroot11
1 files changed, 11 insertions, 0 deletions
diff --git a/helpers/lh_includechroot b/helpers/lh_includechroot
new file mode 100755
index 0000000..eedd31d
--- /dev/null
+++ b/helpers/lh_includechroot
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# lh_includechroot
+
+# Copy external directory into the chroot
+if [ -d "${LIVE_INCLUDE_CHROOT}" ]
+then
+ cd "${LIVE_INCLUDE_CHROOT}"
+ find . | cpio -pumd "${LIVE_CHROOT}"
+ cd "${OLDPWD}"
+fi