Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions rust/agama-manager/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,13 +826,25 @@ impl MessageHandler<message::GetStorageModel> for Service {

#[async_trait]
impl MessageHandler<message::SetStorageModel> for Service {
/// It sets the storage model.
/// Sets the storage model.
///
// FIXME: Apply a config model by calling to [`Service::set_config`]. Note that set_config
// contains logic about what has to be called and in which order. For example, calling to
// bootloader after storage.
// The D-Bus service could extend its API to translate a model into a config, and that config
// can be used as user config for storage.
async fn handle(&mut self, message: message::SetStorageModel) -> Result<(), Error> {
checks::check_stage(&self.progress, Stage::Configuring).await?;
Ok(self
.storage
self.storage
.call(storage::message::SetConfigModel::new(message.model))
.await?)
.await?;
// Bootloader must be recalculated.
self.bootloader
.call(bootloader::message::SetConfig::new(
self.config.bootloader.clone(),
))
.await?;
Ok(())
}
}

Expand Down
6 changes: 6 additions & 0 deletions rust/package/agama.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Feb 12 14:43:48 UTC 2026 - José Iván López González <jlopez@suse.com>

- Recalulate bootloader proposal after applying a storage config
model (gh#agama-project/agama#3158, bsc#1258134).

-------------------------------------------------------------------
Thu Feb 12 14:37:55 UTC 2026 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

Expand Down
Loading