summaryrefslogtreecommitdiff
path: root/helpers/lh_bootstrap_copy
diff options
context:
space:
mode:
authorChris Lamb <chris@chris-lamb.co.uk>2008-09-09 17:56:53 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:41 +0100
commit9c13ebdf48ee1f4391f2d48e7cd2473b8449f497 (patch)
tree45a02981f07e722fafb3b398f8d58519b4fe7bbd /helpers/lh_bootstrap_copy
parentf5fc8b9c9f8f60e7d8c4b4eaa7ee17d8451d1e55 (diff)
downloadvyos-live-build-9c13ebdf48ee1f4391f2d48e7cd2473b8449f497.tar.gz
vyos-live-build-9c13ebdf48ee1f4391f2d48e7cd2473b8449f497.zip
Use tar to perform lh_bootstrap_copy (Closes: #498385)
Diffstat (limited to 'helpers/lh_bootstrap_copy')
-rwxr-xr-xhelpers/lh_bootstrap_copy4
1 files changed, 3 insertions, 1 deletions
diff --git a/helpers/lh_bootstrap_copy b/helpers/lh_bootstrap_copy
index 2b3c19908..349df5bf7 100755
--- a/helpers/lh_bootstrap_copy
+++ b/helpers/lh_bootstrap_copy
@@ -51,7 +51,9 @@ Check_lockfile .lock
Create_lockfile .lock
# Copying host system
-find / ! -name /proc ! -name /sys ! -name "$(dirname ${PWD})" | xargs cp -a chroot
+cd chroot
+tar c / --exclude /proc --exclude /sys "$(dirname ${PWD})" | tar xv
+cd ..
# Creating stage file
Create_stagefile .stage/bootstrap