Skip to content

Commit 989b6af

Browse files
committed
bootloader: Fix filename issue for loader configs
We used `.extension` APIs and that implicitly removed the old desktop suffix... and our new suffix for the TX ID! This now fixes that part which is part of our story now for enabling rollbacks using an fstx. Signed-off-by: Ikey Doherty <[email protected]>
1 parent 67f1f12 commit 989b6af

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

blsforme/src/bootloader/systemd_boot/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ impl<'a, 'b> Loader<'a, 'b> {
185185
.boot_root
186186
.join_insensitive("loader")
187187
.join_insensitive("entries")
188-
.join_insensitive(entry.id(self.schema))
189-
.with_extension("conf");
188+
.join_insensitive(format!("{}.conf", entry.id(self.schema)));
190189
log::trace!("writing entry: {}", loader_id.display());
191190

192191
// vmlinuz primary path

blsforme/src/entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl<'a> Entry<'a> {
9696
Schema::Legacy { os_release, .. } => os_release.name.clone(),
9797
Schema::Blsforme { os_release } => os_release.id.clone(),
9898
};
99-
if let Some(state_id) = self.state_id {
99+
if let Some(state_id) = self.state_id.as_ref() {
100100
format!("{id}-{version}-{state_id}", version = &self.kernel.version)
101101
} else {
102102
format!("{id}-{version}", version = &self.kernel.version)

0 commit comments

Comments
 (0)