summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_includes
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/chroot_includes')
-rwxr-xr-xscripts/build/chroot_includes6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/chroot_includes b/scripts/build/chroot_includes
index 21c0e261b..6ab4e288d 100755
--- a/scripts/build/chroot_includes
+++ b/scripts/build/chroot_includes
@@ -42,8 +42,12 @@ if Find_files config/includes.chroot/
then
# Copying includes
cd config/includes.chroot
- find . | cpio -dmpu --no-preserve-owner "${OLDPWD}"/chroot
+ Echo_message "Creating a tarball with files from includes.chroot..."
+ tar cf "${OLDPWD}"/chroot/includes.chroot.tar .
cd "${OLDPWD}"
+ Echo_message "Extracting the tarball in the chroot..."
+ Chroot chroot "tar -xvf includes.chroot.tar --no-same-owner --keep-directory-symlink --overwrite"
+ rm chroot/includes.chroot.tar
# Creating stage file
Create_stagefile .build/includes.chroot