summaryrefslogtreecommitdiff
path: root/morphlib/exts/sysroot.write
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/exts/sysroot.write')
-rwxr-xr-xmorphlib/exts/sysroot.write3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/exts/sysroot.write b/morphlib/exts/sysroot.write
index 0ad8d630..cc50f9dc 100755
--- a/morphlib/exts/sysroot.write
+++ b/morphlib/exts/sysroot.write
@@ -23,4 +23,5 @@ mkdir -p "$2"
# Previously we would (cd "$1" && find -print0 | cpio -0pumd "$absolute_path")
# to do this, but the source directory is disposable anyway, so we can move
# its contents to save time
-find "$1" -maxdepth 1 -mindepth 1 -exec mv {} "$2/." +
+# find "$1" -maxdepth 1 -mindepth 1 -exec mv {} "$2/." +
+(cd "$1" && find -print0 | cpio -0pumd "$2")