[postcfg] fix update-grub call

This commit is contained in:
Philip Müller 2018-10-29 21:03:13 +01:00
parent f6557c5fe5
commit 009c96b2ea

View File

@ -98,8 +98,7 @@ class ConfigController:
self.terminate('gpg-agent')
# Update grub.cfg
if exists(join(self.root, "usr/bin/update-grub")) \
and libcalamares.globalstorage.value("bootLoader") is not None:
if exists(join(self.root, "usr/bin/update-grub")):
target_env_call(["update-grub"])
# Enable 'menu_auto_hide' when supported in grubenv