Skip to content

Commit cd5497b

Browse files
authored
Enable grub2-bls for arm and riscv64 (bnc#1253222). (#727)
* Enable grub2-bls for arm and riscv64 (bnc#1253222). * Replacing dbus-uuidgen by systemd-machine-id-setup.
1 parent e070503 commit cd5497b

File tree

5 files changed

+25
-10
lines changed

5 files changed

+25
-10
lines changed

package/yast2-bootloader.changes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
-------------------------------------------------------------------
2+
Fri Nov 21 15:23:42 UTC 2025 - Stefan Schubert <[email protected]>
3+
4+
- Enable grub2-bls for arm and riscv64 (bnc#1253222).
5+
- Replacing dbus-uuidgen by systemd-machine-id-setup.
6+
- 5.0.29
7+
18
-------------------------------------------------------------------
29
Thu Nov 20 10:19:58 UTC 2025 - Stefan Schubert <[email protected]>
310

package/yast2-bootloader.spec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
Name: yast2-bootloader
20-
Version: 5.0.28
20+
Version: 5.0.29
2121
Release: 0
2222
Summary: YaST2 - Bootloader Configuration
2323
License: GPL-2.0-or-later
@@ -55,8 +55,6 @@ Requires: rubygem(%rb_default_ruby_abi:cfa_grub2) >= 1.0.1
5555
# lenses are needed here
5656
Requires: augeas-lenses
5757
Requires: yast2-ruby-bindings >= 1.0.0
58-
# dbus-uuidgen needed by BLS
59-
Requires: dbus-1-tools
6058

6159
# only recommend syslinux, as it is not needed when generic mbr is not used (bsc#1004229)
6260
%ifarch %ix86 x86_64

src/lib/bootloader/bls.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ def self.set_authentication
155155
def self.generate_machine_id
156156
Yast::SCR.Execute(Yast::Path.new(".target.remove"), "/etc/machine-id")
157157
begin
158-
Yast::Execute.on_target!("/usr/bin/dbus-uuidgen",
159-
"--ensure=/etc/machine-id")
158+
Yast::Execute.on_target!("/bin/systemd-machine-id-setup")
160159
rescue Cheetah::ExecutionFailed => e
161160
Yast::Report.Error(
162161
format(_(

src/lib/bootloader/bootloader_factory.rb

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,20 @@ def bootloader_by_name(name)
110110
private
111111

112112
def use_systemd_boot?
113+
# only these architectures are supported.
113114
Yast::ProductFeatures.GetBooleanFeature("globals", "enable_systemd_boot") &&
114-
(Yast::Arch.x86_64 || Yast::Arch.aarch64) # only these architectures are supported.
115+
(Yast::Arch.x86_64 ||
116+
Yast::Arch.aarch64 ||
117+
Yast::Arch.arm ||
118+
Yast::Arch.riscv64)
115119
end
116120

117121
def use_grub2_bls?
118-
(Yast::Arch.x86_64 || Yast::Arch.aarch64) # only these architectures are supported.
122+
# only these architectures are supported.
123+
(Yast::Arch.x86_64 ||
124+
Yast::Arch.aarch64 ||
125+
Yast::Arch.arm ||
126+
Yast::Arch.riscv64)
119127
end
120128

121129
def grub2_efi_installable?
@@ -124,7 +132,11 @@ def grub2_efi_installable?
124132
end
125133

126134
def bls_installable?
127-
((Yast::Arch.x86_64 || Yast::Arch.i386 || Yast::Arch.aarch64) && Systeminfo.efi?)
135+
((Yast::Arch.x86_64 ||
136+
Yast::Arch.i386 ||
137+
Yast::Arch.aarch64 ||
138+
Yast::Arch.arm ||
139+
Yast::Arch.riscv64) && Systeminfo.efi?)
128140
end
129141

130142
def proposed_name

test/bls_test.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@
7171
expect(Yast::Execute).to receive(:on_target!)
7272
.with("/usr/bin/sdbootutil", "enroll", "--method=fido2", "--devices=/dev/vda3")
7373
expect(Yast::Execute).to receive(:on_target!)
74-
.with("/usr/bin/dbus-uuidgen",
75-
"--ensure=/etc/machine-id")
74+
.with("/bin/systemd-machine-id-setup")
7675

7776
subject.set_authentication
7877
end

0 commit comments

Comments
 (0)