feat: Display message when BIOS boot image has an unexpected size (#2015)

This commit is contained in:
Kroese
2026-07-28 01:14:26 +02:00
committed by GitHub
parent 5f6bf2a230
commit 22091ceb67
+1 -1
View File
@@ -1159,7 +1159,7 @@ extractBootImage() {
elif ! size=$(stat -c%s "$image"); then elif ! size=$(stat -c%s "$image"); then
warn "Failed to determine the BIOS boot image size, $msg" warn "Failed to determine the BIOS boot image size, $msg"
elif (( size != expected_size )); then elif (( size != expected_size )); then
enabled "$DEBUG" && warn "The extracted BIOS boot image has an unexpected size, $msg" info "The extracted BIOS boot image has an unexpected size, $msg"
else else
if ! mv -f "$image" "$dir/$ETFS"; then if ! mv -f "$image" "$dir/$ETFS"; then
rm -rf "$tmp" || true rm -rf "$tmp" || true