pi 5 support (#2640)

* prioritize raspi repo

* change kernel

* use newer kernel

* Update build.sh

* fix ssh keygen

* switch to .com

* use raspi-update to download firmware

* Update build.sh

* Update build.sh

* Update build.sh

* Update build.sh

* switch to boot/firmware

* fix fstab

* update-initramfs

* skip check partition

* switch back to boot

* fix initramfs

* use rpi-update kernels

* simplify kernel selection
This commit is contained in:
Aiden McClelland
2024-10-30 09:15:24 -06:00
committed by GitHub
parent 8e0db2705f
commit 480f5c1a9a
6 changed files with 17 additions and 28 deletions

View File

@@ -236,11 +236,7 @@ impl<'a> Invoke<'a> for ExtendedCommand<'a> {
.or(Some(&res.stdout))
.filter(|a| !a.is_empty())
.and_then(|a| std::str::from_utf8(a).ok())
.unwrap_or(&format!(
"{} exited with code {}",
self.cmd.as_std().get_program().to_string_lossy(),
res.status
))
.unwrap_or(&format!("{} exited with code {}", cmd_str, res.status))
);
Ok(res.stdout)
} else {
@@ -267,7 +263,7 @@ impl<'a> Invoke<'a> for ExtendedCommand<'a> {
if prev.is_some() {
cmd.stdin(Stdio::piped());
}
let mut child = cmd.spawn().with_kind(error_kind)?;
let mut child = cmd.spawn().with_ctx(|_| (error_kind, &cmd_str))?;
let input = std::mem::replace(
&mut prev,
child