From 23de6cfc1864d36ddf32d7846c5eb5963c22d4fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Mon, 6 Oct 2014 11:53:51 +0200 Subject: [PATCH] plugin_bootloader: make grub.cfg runtime patching format consistent with grub2-mkconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- tuned/plugins/plugin_bootloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/plugins/plugin_bootloader.py b/tuned/plugins/plugin_bootloader.py index b9da2e7..773dc7b 100644 --- a/tuned/plugins/plugin_bootloader.py +++ b/tuned/plugins/plugin_bootloader.py @@ -47,7 +47,7 @@ class BootloaderPlugin(base.Plugin): def _remove_grub2_tuning(self): self._patch_bootcmdline("") - self._cmd.replace_in_file(self._grub2_cfg_file, r"\b(set " + consts.GRUB2_TUNED_VAR + r"\s*=).*$", r"\1") + self._cmd.replace_in_file(self._grub2_cfg_file, r"\b(set " + consts.GRUB2_TUNED_VAR + r"\s*=).*$", r"\1" + "\"\"") def _instance_unapply_static(self, instance, profile_switch = False): if profile_switch: