Skip to content

Commit

Permalink
manager: Default to None xbootldr/esp mountpoint if no devices can be…
Browse files Browse the repository at this point in the history
… found

Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeycode committed Jul 10, 2024
1 parent 4a2171a commit 4aec928
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions blsforme/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,17 @@ impl<'a> Manager<'a> {
let mut mounts = Mounts {
xbootldr: if let Some(point) = boot_env.xboot_mountpoint.as_ref() {
Some(point.clone())
} else {
} else if boot_env.xbootldr().is_some() {
Some(config.root.path().join("boot"))
} else {
None
},
esp: if let Some(point) = boot_env.esp_mountpoint.as_ref() {
Some(point.clone())
} else {
} else if boot_env.esp().is_some() {
Some(config.root.path().join("efi"))
} else {
None
},
};

Expand Down

0 comments on commit 4aec928

Please sign in to comment.