From 75833aa33e587ea75fb9e9eee7b6ce593798be3a Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 13 May 2020 02:49:49 -0500 Subject: The gnu/dammit cpio is REALLY stupid, so only pass --no-preserve-owner when using the toybox one. (This means /root will belong to the host user for the "make root" host target, which makes dropbear sad.) --- scripts/mkroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/mkroot.sh') 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 -- cgit v1.2.3