mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user