mirror of
https://github.com/dockur/windows.git
synced 2026-08-03 12:37:20 +01:00
feat: Display message when BIOS boot image has an unexpected size (#2015)
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user