summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan James <dalto@fastmail.com>2023-09-19 20:37:38 +0000
committerMorten Linderud <morten@linderud.pw>2023-10-26 20:36:20 +0200
commit298e979025837643a59f50f378a89f213258c080 (patch)
tree4d7b2cb3f0efd88e84702699189755fa31801153
parent56b89bb6cde81d68b8e0f3cd27a97b35fde10f55 (diff)
Add consistent exit code to 40-microcode.install
-rwxr-xr-xkernel-install/40-microcode.install4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel-install/40-microcode.install b/kernel-install/40-microcode.install
index c140477..78fe611 100755
--- a/kernel-install/40-microcode.install
+++ b/kernel-install/40-microcode.install
@@ -16,11 +16,13 @@ set -e
for dir in "${KERNEL_INSTALL_BOOT_ROOT}" "/boot"; do
for microcode in "intel-ucode.img" "amd-ucode.img"; do
if [[ -f "${dir}/${microcode}" ]]; then
+ if (( KERNEL_INSTALL_VERBOSE )); then
+ printf '+ Found microcode image %s\n' "$microcode"
+ fi
install -m 0644 "${dir}/${microcode}" "${KERNEL_INSTALL_STAGING_AREA}/microcode-${microcode}" || {
echo "Error: could not copy '$microcode' to the staging area." >&2
exit 1
}
- (( KERNEL_INSTALL_VERBOSE )) && printf "+ Found microcode image %s\n" "$microcode"
fi
done
done