From a1459c9e53022b1405767e253bc80c90dde889d2 Mon Sep 17 00:00:00 2001 From: Michal Hecko Date: Wed, 20 Nov 2024 23:01:32 +0100 Subject: [PATCH] fix(add_upgrade_boot_entry): convert arg list into a tuple Convert collected rd.lvm args into a tuple before trying to make a set with one of the elements being the args. As list is not hashable, this causes the actor to crash. --- .../actors/addupgradebootentry/libraries/addupgradebootentry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/system_upgrade/common/actors/addupgradebootentry/libraries/addupgradebootentry.py b/repos/system_upgrade/common/actors/addupgradebootentry/libraries/addupgradebootentry.py index b236e39b56..981c9401a7 100644 --- a/repos/system_upgrade/common/actors/addupgradebootentry/libraries/addupgradebootentry.py +++ b/repos/system_upgrade/common/actors/addupgradebootentry/libraries/addupgradebootentry.py @@ -303,7 +303,7 @@ def _get_rdlvm_arg_values(): api.current_logger().debug('Collected the following rd.lvm.lv args that are undesired for the squashfs: %s', rd_lvm_values) - return rd_lvm_values + return tuple(rd_lvm_values) def construct_cmdline_args_for_livemode():