From a08eff9b1b881dc61f9427153706e2d5b3bd0e01 Mon Sep 17 00:00:00 2001 From: Michael Young Date: Tue, 13 Aug 2019 21:15:02 +0100 Subject: [PATCH] failing to set value to 0 in Grub2ConfigFile In Grub2ConfigFile the code to handle ${saved_entry} and ${next_entry} sets arg = "0" but this now does nothing following "tools/pygrub: Make pygrub understand default entry in string format" d1b93ea2615bd789ee28901f1f1c05ffb319cb61 which replaced arg.strip() with arg_strip in the following line. This patch restores the previous behaviour. --- tools/pygrub/src/GrubConf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py index 594139bac7..73f1bbed2f 100644 --- a/tools/pygrub/src/GrubConf.py +++ b/tools/pygrub/src/GrubConf.py @@ -440,7 +440,7 @@ class Grub2ConfigFile(_GrubConfigFile): arg_strip = arg.strip() if arg_strip == "${saved_entry}" or arg_strip == "${next_entry}": logging.warning("grub2's saved_entry/next_entry not supported") - arg = "0" + arg_strip = "0" setattr(self, self.commands[com], arg_strip) else: logging.info("Ignored directive %s" %(com,)) -- 2.21.0