diff options
-rwxr-xr-x | scripts/mkroot.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mkroot.sh b/scripts/mkroot.sh index ade50a06..3d46099f 100755 --- a/scripts/mkroot.sh +++ b/scripts/mkroot.sh @@ -243,6 +243,6 @@ fi # clean up and package root filesystem for initramfs. [ -z "$BUILTIN" ] && announce "${CROSS_BASE}root.cpio.gz" && - (cd "$ROOT" && find . | cpio -o -H newc --no-preserve-owner | gzip) \ + (cd "$ROOT" && find . | cpio -o -H newc ${CROSS_COMPILE:+--no-preserve-owner} | gzip) \ > "$OUTPUT/$CROSS_BASE"root.cpio.gz rmdir "$MYBUILD" "$BUILD" 2>/dev/null # remove if empty |