mirror of
https://github.com/dockur/windows.git
synced 2026-08-03 20:47:12 +01:00
fix: Read boot image offset during legacy fallback (#1987)
This commit is contained in:
@@ -1293,6 +1293,13 @@ extractBootImage() {
|
|||||||
|
|
||||||
rm -rf "$tmp" || true
|
rm -rf "$tmp" || true
|
||||||
|
|
||||||
|
local boot_info
|
||||||
|
|
||||||
|
if ! boot_info=$(isoinfo -d -i "$iso"); then
|
||||||
|
error "Failed to read boot image information from $desc ISO!"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
offset=$(awk '/Bootoff / { print $NF; exit }' <<< "$boot_info")
|
offset=$(awk '/Bootoff / { print $NF; exit }' <<< "$boot_info")
|
||||||
|
|
||||||
if [ -z "$offset" ]; then
|
if [ -z "$offset" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user