diff --git a/src/modules/grubcfg/main.py b/src/modules/grubcfg/main.py index c80348346..01a15fe61 100644 --- a/src/modules/grubcfg/main.py +++ b/src/modules/grubcfg/main.py @@ -56,7 +56,7 @@ def modify_grub_default(partitions, root_mount_point, distributor): elif lines[i].startswith("GRUB_CMDLINE_LINUX_DEFAULT"): lines[i] = kernel_cmd elif lines[i].startswith("#GRUB_DISTRIBUTOR") or lines[i].startswith("GRUB_DISTRIBUTOR"): - lines[i] = "GRUB_DISTRIBUTOR=%s" % distributor + lines[i] = "GRUB_DISTRIBUTOR='%s'" % distributor.replace("'", "'\\''") with open(default_grub, 'w') as grub_file: grub_file.write("\n".join(lines) + "\n")