From 84659674cdb1e29b11e0137cec5f2bee0b6a36cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Tue, 25 Sep 2018 20:15:40 +0200 Subject: [PATCH] [postcfg] enable menu_auto_hide option --- src/modules/postcfg/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/postcfg/main.py b/src/modules/postcfg/main.py index ace29f45f..a61ba677d 100644 --- a/src/modules/postcfg/main.py +++ b/src/modules/postcfg/main.py @@ -101,6 +101,10 @@ class ConfigController: and libcalamares.globalstorage.value("bootLoader") is not None: target_env_call(["update-grub"]) + # Enable 'menu_auto_hide' when supported in grubenv + if exists(join(self.root, "usr/bin/grub-set-bootflag")) + target_env_call(["grub-editenv - set menu_auto_hide=1"]) + return None