[postcfg] fix update-grub call

This commit is contained in:
Philip Müller 2018-10-29 21:03:13 +01:00
parent 95cbf0a8eb
commit 43ce7e7e06

View File

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