From 10af624a73c14aca3ba477421097d7caae201f95 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 8 Nov 2022 18:36:38 +0100 Subject: [PATCH] Make sure the build fails if generating uInitrd fails (#4398) Without this, when mkimage fails (for example because the boot partition is too small), install.log shows an error like: mkimage: Write only 16310208/17794920 bytes, probably no space left on the device But this does not terminate the build, so the compile script shows no error and an image is generated, but it is unbootable. This runs the script with -e, so when mkimage fails, the script fails, which makes update-initramfs fail, which makes the build fail. --- packages/bsp/common/etc/initramfs/post-update.d/99-uboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bsp/common/etc/initramfs/post-update.d/99-uboot b/packages/bsp/common/etc/initramfs/post-update.d/99-uboot index 86f210dd93..a69ea7b79e 100755 --- a/packages/bsp/common/etc/initramfs/post-update.d/99-uboot +++ b/packages/bsp/common/etc/initramfs/post-update.d/99-uboot @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -e . /etc/armbian-release