Skip to content

Commit

Permalink
anaconda: add smt=off xen option during installation
Browse files Browse the repository at this point in the history
Defaults set during package installation do not apply, as booloader
configuration doesn't exist at that stage yet.

Reported by @rustybird
QubesOS/qubes-issues#4252
  • Loading branch information
marmarek committed Sep 11, 2018
1 parent b0fa538 commit 938578c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anaconda/pyanaconda/bootloader.py
Expand Up @@ -1504,7 +1504,7 @@ def write_defaults(self):
# boot arguments
log.info("bootloader.py: used boot args: %s ", self.boot_args)
defaults.write("GRUB_CMDLINE_LINUX=\"%s\"\n" % self.boot_args)
defaults.write("GRUB_CMDLINE_XEN_DEFAULT=\"console=none dom0_mem=min:1024M dom0_mem=max:4096M iommu=no-igfx ucode=scan\"\n")
defaults.write("GRUB_CMDLINE_XEN_DEFAULT=\"console=none dom0_mem=min:1024M dom0_mem=max:4096M iommu=no-igfx ucode=scan smt=off\"\n")
defaults.write("GRUB_DISABLE_RECOVERY=\"true\"\n")
defaults.write("GRUB_THEME=\"/boot/grub2/themes/system/theme.txt\"\n")
defaults.write("GRUB_DISABLE_OS_PROBER=\"true\"\n")
Expand Down Expand Up @@ -1892,7 +1892,7 @@ def write_config_images(self, config):
root_args += " rootflags=subvol=%s" % image.device.name
config.write("\n")
config.write("[{}]\n".format(image.version))
config.write("options=loglvl=all dom0_mem=min:1024M dom0_mem=max:4096M iommu=no-igfx ucode=scan\n")
config.write("options=loglvl=all dom0_mem=min:1024M dom0_mem=max:4096M iommu=no-igfx ucode=scan smt=off\n")
config.write("kernel={} {} {}\n".format(
image.kernel,
root_args,
Expand Down

0 comments on commit 938578c

Please sign in to comment.