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:
2026-05-03 14:23:54 +01:00
parent 480d1a56f4
commit 18f6e809a1
4 changed files with 27 additions and 1 deletions
+2
View File
@@ -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)?;
}
}