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.
This commit is contained in:
Matthijs Kooijman 2022-11-08 18:36:38 +01:00 committed by GitHub
parent 7f68198b4a
commit 10af624a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh -e
. /etc/armbian-release