28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
Upstream-Status: Inappropriate [oe specific]
|
|
diff --git a/tuned.spec b/tuned.spec
|
|
index 0b7dc03..6213976 100644
|
|
--- a/tuned.spec
|
|
+++ b/tuned.spec
|
|
@@ -397,7 +397,7 @@ if [ "$1" == 0 ]; then
|
|
# cleanup for Boot loader specification (BLS)
|
|
|
|
# clear grubenv variables
|
|
- grub2-editenv - unset tuned_params tuned_initrd &>/dev/null || :
|
|
+ grub2-editenv "/boot/EFI/BOOT/grubenv" unset tuned_params tuned_initrd &>/dev/null || :
|
|
# unpatch BLS entries
|
|
MACHINE_ID=`cat /etc/machine-id 2>/dev/null`
|
|
if [ "$MACHINE_ID" ]
|
|
diff --git a/tuned/plugins/plugin_bootloader.py b/tuned/plugins/plugin_bootloader.py
|
|
index 2711e11..c327384 100644
|
|
--- a/tuned/plugins/plugin_bootloader.py
|
|
+++ b/tuned/plugins/plugin_bootloader.py
|
|
@@ -481,7 +481,7 @@ class BootloaderPlugin(base.Plugin):
|
|
def _update_grubenv(self, d):
|
|
log.debug("updating grubenv, setting %s" % str(d))
|
|
l = ["%s=%s" % (str(option), str(value)) for option, value in d.items()]
|
|
- (rc, out) = self._cmd.execute(["grub2-editenv", "-", "set"] + l)
|
|
+ (rc, out) = self._cmd.execute(["grub2-editenv", "/boot/EFI/BOOT/grubenv", "set"] + l)
|
|
if rc != 0:
|
|
log.warning("cannot update grubenv: '%s'" % out)
|
|
return False
|