Bootloader updater
In bootupd, we have not been handling ix86 architecture at all which
ended up erroring out during rpm builds with the following errors
```rust
--> src/cli/bootupctl.rs:155:44
|
155 | fn run_migrate_static_grub_config() -> Result<()> {
| ------------------------------ ^^^^^^^^^^ expected `Result<(), Error>`, found `()`
| |
| implicitly returns `()` as its body has no tail or `return` expression
|
= note: expected enum `Result<(), anyhow::Error>`
found unit type `()`
warning: unreachable call
--> src/component.rs:92:5
|
92 | Ok(match name {
| _____^^_-
| | |
| | unreachable call
93 | | #[cfg(any(
94 | | target_arch = "x86_64",
95 | | target_arch = "aarch64",
... |
103 | | _ => anyhow::bail!("No component {}", name),
104 | | })
| |_____- any code following this `match` expression is unreachable, as all arms diverge
|
= note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
warning: unused variable: `configs`
--> src/bootupd.rs:58:5
|
58 | configs: ConfigMode,
| ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_configs`
|
= note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
warning: variable does not need to be mutable
--> src/bootupd.rs:231:9
|
231 | let mut components = BTreeMap::new();
| ----^^^^^^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
For more information about this error, try `rustc --explain E0308`.
```
Signed-off-by: Pragyan Poudyal <ppoudyal@redhat.com>
|
||
|---|---|---|
| tests | ||
| .gitignore | ||
| gating.yaml | ||
| README.md | ||
| rust-bootupd.spec | ||
| sources | ||
rust-bootupd
The rust-bootupd package