From 432f3a783a38a5dd87e1cf230b96397a182955f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Iv=C3=A1n=20L=C3=B3pez=20Gonz=C3=A1lez?= Date: Thu, 12 Feb 2026 13:38:48 +0000 Subject: [PATCH 1/2] Recalculate bootloader after applying a storage config model --- rust/agama-manager/src/service.rs | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/rust/agama-manager/src/service.rs b/rust/agama-manager/src/service.rs index 321eec4b26..a0b1acbd78 100644 --- a/rust/agama-manager/src/service.rs +++ b/rust/agama-manager/src/service.rs @@ -826,13 +826,25 @@ impl MessageHandler for Service { #[async_trait] impl MessageHandler 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(()) } } From d153baf29848d553a626e3fc86e5619c6343c90a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Iv=C3=A1n=20L=C3=B3pez=20Gonz=C3=A1lez?= Date: Thu, 12 Feb 2026 13:44:45 +0000 Subject: [PATCH 2/2] Changelog --- rust/package/agama.changes | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rust/package/agama.changes b/rust/package/agama.changes index bb7e443e04..faa65c590b 100644 --- a/rust/package/agama.changes +++ b/rust/package/agama.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 12 14:43:48 UTC 2026 - José Iván López González + +- 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