diff --git a/service/lib/agama/storage/actions_generator.rb b/service/lib/agama/storage/actions_generator.rb index 059b4e7281..082a61ff96 100644 --- a/service/lib/agama/storage/actions_generator.rb +++ b/service/lib/agama/storage/actions_generator.rb @@ -29,7 +29,10 @@ class ActionsGenerator # param target_graph [Y2Storage::Devicegraph] def initialize(system_graph, target_graph) @system_graph = system_graph - @target_graph = target_graph + # It is important to keep a reference to the actiongraph. Otherwise, the gargabe collector + # could kill the actiongraph, leaving the compound actions orphan. + # See https://github.com/openSUSE/agama/issues/1377. + @actiongraph = target_graph.actiongraph end # All actions properly sorted. @@ -44,8 +47,8 @@ def generate # @return [Y2Storage::Devicegraph] attr_reader :system_graph - # @return [Y2Storage::Devicegraph] - attr_reader :target_graph + # @return [Y2Storage::Actiongraph] + attr_reader :actiongraph # Sorted main actions (everything except subvolume actions). # @@ -67,7 +70,7 @@ def subvolume_actions # # @return [Array] def actions - @actions ||= target_graph.actiongraph.compound_actions.map do |action| + @actions ||= actiongraph.compound_actions.map do |action| Action.new(action, system_graph) end end diff --git a/service/package/rubygem-agama-yast.changes b/service/package/rubygem-agama-yast.changes index 1b25320c76..2cfb4553c3 100644 --- a/service/package/rubygem-agama-yast.changes +++ b/service/package/rubygem-agama-yast.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 26 09:12:33 UTC 2024 - José Iván López González + +- Fix segmentation fault in the storage actions + (gh#openSUSE/agama#1377). + ------------------------------------------------------------------- Wed Jun 26 08:25:56 UTC 2024 - Ladislav Slezák @@ -142,7 +148,7 @@ Wed Feb 7 11:49:02 UTC 2024 - Imobach Gonzalez Sosa ------------------------------------------------------------------- Thu Feb 1 13:08:39 UTC 2024 - Josef Reidinger -- Log if multipath probing is misconfigured (bsc#1215598) +- Log if multipath probing is misconfigured (bsc#1215598) ------------------------------------------------------------------- Mon Jan 29 13:51:30 UTC 2024 - José Iván López González @@ -165,7 +171,7 @@ Thu Jan 18 08:35:01 UTC 2024 - Ancor Gonzalez Sosa Tue Jan 16 10:49:14 UTC 2024 - Michal Filka - bsc#1210541, gh#openSUSE/agama#516 - - copy NM's runtime config created on dracut's request to the target + - copy NM's runtime config created on dracut's request to the target ------------------------------------------------------------------- Thu Jan 11 15:32:44 UTC 2024 - Imobach Gonzalez Sosa