grubcfg: Get the distribution name from the branding.

Remove the redundant "distributor" setting from grubcfg.conf (and the
entire grubcfg.conf file that has no settings left for now).
This commit is contained in:
Kevin Kofler 2014-11-16 04:33:27 +01:00
parent 3cf5baadc1
commit 8f5b0585cb
2 changed files with 2 additions and 4 deletions

View File

@ -1,3 +0,0 @@
---
# Replace 'LinuxDistribution' with your distribution name - for example with 'Manjaro'
distributor: LinuxDistribution

View File

@ -66,5 +66,6 @@ def modify_grub_default(partitions, root_mount_point, distributor):
def run():
partitions = libcalamares.globalstorage.value("partitions")
root_mount_point = libcalamares.globalstorage.value("rootMountPoint")
distributor = libcalamares.job.configuration["distributor"]
branding = libcalamares.globalstorage.value("branding")
distributor = branding["productName"]
return modify_grub_default(partitions, root_mount_point, distributor)