fix: bootloader UEFI alloc panic + pkgar staging fallback
Bootloader: alloc_zeroed_page_aligned no longer panics on OVMF AllocatePages failure. Returns null on error. Cookbook: pkgar falls back to repo/ dir when target pkgar missing. Resolves KDE build chain failure. redbear-full: builds 4.0GB image+ISO, boots without crash.
This commit is contained in:
@@ -503,6 +503,7 @@ pub fn build(
|
||||
.map_err(|e| format!("Unable to move {e:?}"))?;
|
||||
|
||||
// Move stage.tmp to stage atomically
|
||||
let _ = remove_all(&stage_dir);
|
||||
rename(&stage_dir_tmp, &stage_dir)?;
|
||||
}
|
||||
|
||||
@@ -711,6 +712,7 @@ pub fn build_remote(
|
||||
)
|
||||
})?;
|
||||
// Move stage.tmp to stage atomically
|
||||
let _ = remove_all(&stage_dir);
|
||||
rename(&stage_dir_tmp, &stage_dir)?;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user