Skip to content

Commit

Permalink
Set cpu_mitigations for different bootloaders Grub/systemd-boot (#1116)
Browse files Browse the repository at this point in the history
* using kernel parameters in systemd-boot
  • Loading branch information
schubi2 committed Apr 30, 2024
1 parent d1471c9 commit 033ac7f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
6 changes: 6 additions & 0 deletions package/yast2-installation.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Apr 26 14:09:15 UTC 2024 - Stefan Schubert <schubi@suse.com>

- Handle SystemdBoot mitigations. (bsc#1220892)
- 5.0.9

-------------------------------------------------------------------
Wed Apr 3 13:39:37 UTC 2024 - Knut Anderssen <kanderssen@suse.com>

Expand Down
8 changes: 4 additions & 4 deletions package/yast2-installation.spec
Expand Up @@ -16,7 +16,7 @@
#

Name: yast2-installation
Version: 5.0.8
Version: 5.0.9
Release: 0
Summary: YaST2 - Installation Parts
License: GPL-2.0-only
Expand All @@ -29,8 +29,8 @@ Source2: YaST2-Firstboot.service
BuildRequires: update-desktop-files
# Kernel: Use is_zvm from Yast::Arch
BuildRequires: yast2 >= 5.0.5
# Whitelist cio_ignore s390 parameter
BuildRequires: yast2-bootloader >= 5.0.4
# systemd-boot kernel parameters
BuildRequires: yast2-bootloader >= 5.0.9
# storage-ng based version
BuildRequires: yast2-country >= 3.3.1
BuildRequires: yast2-devtools >= 3.1.10
Expand Down Expand Up @@ -75,7 +75,7 @@ Requires: tar
Requires: (yast2-x11 >= 4.5.1 if libyui-qt)
# Y2Packager::Repository.refresh
Requires: yast2 >= 5.0.3
Requires: yast2-bootloader >= 5.0.1
Requires: yast2-bootloader >= 5.0.9
Requires: yast2-country >= 3.3.1
# Language::GetLanguageItems and other API
# Language::Set (handles downloading the translation extensions)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/installation/dialogs/security.rb
Expand Up @@ -121,7 +121,7 @@ def polkit_frame
def cpu_frame
frame(
_("CPU"),
::Bootloader::Grub2Widget::CpuMitigationsWidget.new
::Bootloader::CpuMitigationsWidget.new
)
end

Expand Down
10 changes: 5 additions & 5 deletions src/lib/transfer/file_from_url.rb
Expand Up @@ -451,21 +451,21 @@ def get_file_from_url(scheme:, host:, urlpath:, localfile:,
from: "any",
to: "list <map>"
)
Builtins.foreach(disks) do |m|
if _Scheme == "usb" && Ops.get_string(m, "bus", "USB") != "SCSI"
Builtins.foreach(disks) do |disk|
if _Scheme == "usb" && Ops.get_string(disk, "bus", "USB") != "SCSI"
next
end
if Builtins.haskey(m, "dev_name")
if Builtins.haskey(disk, "dev_name")
i = 0
dev = Ops.get_string(m, "dev_name", "")
dev = Ops.get_string(disk, "dev_name", "")
deviceList = Builtins.add(
deviceList,
Builtins.substring(dev, 5)
)
begin
i = Ops.add(i, 1)
dev = Ops.add(
Ops.get_string(m, "dev_name", ""),
Ops.get_string(disk, "dev_name", ""),
Builtins.sformat("%1", i)
)
if SCR.Read(path(".target.lstat"), dev) != {}
Expand Down

0 comments on commit 033ac7f

Please sign in to comment.