iggyvolz pointed out that mkroot targets with builtin initramfs were

quietly exiting with failure near the end. (Ooops, my bad.)
This commit is contained in:
Rob Landley 2021-12-13 08:28:03 -06:00
parent 8b7e02f428
commit ea4748a7cb

View File

@ -270,9 +270,11 @@ CONFIG_CMDLINE="console=ttyUL0 earlycon"' BUILTIN=1
fi fi
# clean up and package root filesystem for initramfs. # clean up and package root filesystem for initramfs.
[ -z "$BUILTIN" ] && announce "${CROSS}root.cpio.gz" && if [ -z "$BUILTIN" ]; then
(cd "$ROOT" && find . | cpio -o -H newc ${CROSS_COMPILE:+--no-preserve-owner} | gzip) \ announce "${CROSS}root.cpio.gz"
> "$OUTPUT/$CROSS"root.cpio.gz || exit 1 (cd "$ROOT" && find . | cpio -o -H newc ${CROSS_COMPILE:+--no-preserve-owner}\
| gzip) > "$OUTPUT/$CROSS"root.cpio.gz || exit 1
fi
mv "$LOG/$CROSS".{n,y} #2>/dev/null mv "$LOG/$CROSS".{n,y} #2>/dev/null
rmdir "$MYBUILD" "$BUILD" 2>/dev/null || exit 0 # remove if empty, not an error rmdir "$MYBUILD" "$BUILD" 2>/dev/null || exit 0 # remove if empty, not an error