[postcfg] enable 'menu_auto_hide' when supported

This commit is contained in:
Philip Müller 2018-10-23 18:56:11 +02:00
parent 0bdc8f11db
commit 749ca3f287

View File

@ -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", "boot_success=1"])
return None