Hello community,
here is the log from the commit of package yast2-bootloader for
openSUSE:Leap:15.2 checked in at 2020-05-21 12:57:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/yast2-bootloader (Old)
and /work/SRC/openSUSE:Leap:15.2/.yast2-bootloader.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-bootloader"
Thu May 21 12:57:33 2020 rev:120 rq:807739 version:4.2.23
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/yast2-bootloader/yast2-bootloader.changes
2020-04-08 12:47:53.946327807 +0200
+++
/work/SRC/openSUSE:Leap:15.2/.yast2-bootloader.new.2738/yast2-bootloader.changes
2020-05-21 12:57:34.154563761 +0200
@@ -1,0 +2,13 @@
+Thu Apr 23 08:53:49 UTC 2020 - Josef Reidinger <[email protected]>
+
+- add SLE15 SP2 only workaround for ARM to make GRUB2 works for
+ every device. It can potentially break multi-boot (bsc#1167015)
+- 4.2.23
+
+-------------------------------------------------------------------
+Wed Apr 15 10:57:23 UTC 2020 - Steffen Winterfeldt <[email protected]>
+
+- update s390x secure boot message (bsc#1168165)
+- 4.2.22
+
+-------------------------------------------------------------------
Old:
----
yast2-bootloader-4.2.21.tar.bz2
New:
----
yast2-bootloader-4.2.23.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-bootloader.spec ++++++
--- /var/tmp/diff_new_pack.mdOjpk/_old 2020-05-21 12:57:34.486564484 +0200
+++ /var/tmp/diff_new_pack.mdOjpk/_new 2020-05-21 12:57:34.490564492 +0200
@@ -1,7 +1,7 @@
#
# spec file for package yast2-bootloader
#
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,17 +12,17 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: yast2-bootloader
-Version: 4.2.21
+Version: 4.2.23
Release: 0
Summary: YaST2 - Bootloader Configuration
License: GPL-2.0-or-later
Group: System/YaST
-Url: https://github.com/yast/yast-bootloader
+URL: https://github.com/yast/yast-bootloader
Source0: %{name}-%{version}.tar.bz2
++++++ yast2-bootloader-4.2.21.tar.bz2 -> yast2-bootloader-4.2.23.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-bootloader-4.2.21/CONTRIBUTING.md
new/yast2-bootloader-4.2.23/CONTRIBUTING.md
--- old/yast2-bootloader-4.2.21/CONTRIBUTING.md 2020-04-02 18:13:23.000000000
+0200
+++ new/yast2-bootloader-4.2.23/CONTRIBUTING.md 1970-01-01 01:00:00.000000000
+0100
@@ -1,89 +0,0 @@
-YaST Contribution Guidelines
-============================
-
-YaST is an open source project and as such it welcomes all kinds of
-contributions. If you decide to contribute, please follow these guidelines to
-ensure the process is effective and pleasant both for you and the YaST
maintainers.
-
-There are two main forms of contribution: reporting bugs and performing code
-changes.
-
-Bug Reports
------------
-
-If you find a problem, please report it either using
-[Bugzilla](https://bugzilla.suse.com/enter_bug.cgi?format=guided&product=openSUSE+Factory&component=YaST2)
-or [GitHub issues](../../issues). (For Bugzilla, use the [simplified
-registration](https://secure-www.novell.com/selfreg/jsp/createSimpleAccount.jsp)
-if you don't have an account yet.)
-
-When creating a bug report, please follow our [bug reporting
-guidelines](http://en.opensuse.org/openSUSE:Report_a_YaST_bug).
-
-We can't guarantee that every bug will be fixed, but we'll try.
-
-Code Changes
-------------
-
-We welcome all kinds of code contributions, from simple bug fixes to
significant
-refactorings and implementation of new features. However, before making any
-non-trivial contribution, get in touch with us first — this can prevent wasted
-effort on both sides. Also, have a look at our [development
-documentation](http://en.opensuse.org/openSUSE:YaST_development).
-
-To send us your code change, use GitHub pull requests. The workflow is as
-follows:
-
- 1. Fork the project.
-
- 2. Create a topic branch based on `master`.
-
- 3. Implement your change, including tests (if possible). Make sure you adhere
- to the [Ruby style
- guide](https://github.com/SUSE/style-guides/blob/master/Ruby.md).
-
- 4. Update the package version (in `packages/*.spec`, usually by
- `rake version:bump`) and add a new entry to the `package/*.changes` file
- (by `osc vc package`).
- For bigger changes or changes which need longer discussion it is advised
to
- add this as a separate last commit so it can be easily updated when
another
- change is merged in the meantime.
-
- 5. Make sure your change didn't break anything by building the RPM package
- (`rake osc:build`). The build process includes running the full testsuite.
-
- 6. Publish the branch and create a pull request.
-
- 7. YaST developers will review your change and possibly point out issues.
- Adapt the code under their guidance until they are all resolved.
-
- 8. Finally, the pull request will get merged or rejected.
-
-See also [GitHub's guide on
-contributing](https://help.github.com/articles/fork-a-repo).
-
-If you want to do multiple unrelated changes, use separate branches and pull
-requests.
-
-### Commits
-
-Each commit in the pull request should do only one thing, which is clearly
-described by its commit message. Especially avoid mixing formatting changes and
-functional changes into one commit. When writing commit messages, adhere to
-[widely used
-conventions](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
-
-If your commit is related to a bug in Bugzilla or an issue on GitHub, make sure
-you mention it in the commit message for cross-reference. Use format like
-bnc#775814 or gh#yast/yast-foo#42. See also [GitHub
-autolinking](https://help.github.com/articles/github-flavored-markdown#references)
-and [openSUSE abbreviation
-reference](http://en.opensuse.org/openSUSE:Packaging_Patches_guidelines#Current_set_of_abbreviations).
-
-Additional Information
-----------------------
-
-If you have any question, feel free to ask at the [development mailing
-list](http://lists.opensuse.org/yast-devel/) or at the
-[#yast](http://webchat.freenode.net/?channels=%23yast) IRC channel on freenode.
-We'll do our best to provide a timely and accurate answer.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-bootloader-4.2.21/Dockerfile
new/yast2-bootloader-4.2.23/Dockerfile
--- old/yast2-bootloader-4.2.21/Dockerfile 2020-04-02 18:13:23.000000000
+0200
+++ new/yast2-bootloader-4.2.23/Dockerfile 2020-04-23 17:47:20.000000000
+0200
@@ -1,2 +1,2 @@
-FROM registry.opensuse.org/yast/head/containers/yast-ruby:latest
+FROM registry.opensuse.org/yast/sle-15/sp2/containers/yast-ruby
COPY . /usr/src/app
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-bootloader-4.2.21/Rakefile
new/yast2-bootloader-4.2.23/Rakefile
--- old/yast2-bootloader-4.2.21/Rakefile 2020-04-02 18:13:23.000000000
+0200
+++ new/yast2-bootloader-4.2.23/Rakefile 2020-04-23 17:47:20.000000000
+0200
@@ -2,6 +2,8 @@
require "yast/rake"
+Yast::Tasks.submit_to :sle15sp2
+
Yast::Tasks.configuration do |conf|
# lets ignore license check for now
conf.skip_license_check << /.*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-bootloader-4.2.21/package/yast2-bootloader.changes
new/yast2-bootloader-4.2.23/package/yast2-bootloader.changes
--- old/yast2-bootloader-4.2.21/package/yast2-bootloader.changes
2020-04-02 18:13:23.000000000 +0200
+++ new/yast2-bootloader-4.2.23/package/yast2-bootloader.changes
2020-04-23 17:47:20.000000000 +0200
@@ -1,4 +1,17 @@
-------------------------------------------------------------------
+Thu Apr 23 08:53:49 UTC 2020 - Josef Reidinger <[email protected]>
+
+- add SLE15 SP2 only workaround for ARM to make GRUB2 works for
+ every device. It can potentially break multi-boot (bsc#1167015)
+- 4.2.23
+
+-------------------------------------------------------------------
+Wed Apr 15 10:57:23 UTC 2020 - Steffen Winterfeldt <[email protected]>
+
+- update s390x secure boot message (bsc#1168165)
+- 4.2.22
+
+-------------------------------------------------------------------
Thu Apr 2 15:52:56 UTC 2020 - Steffen Winterfeldt <[email protected]>
- limit s390 secure boot to SCSI disks (bsc#1168165)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-bootloader-4.2.21/package/yast2-bootloader.spec
new/yast2-bootloader-4.2.23/package/yast2-bootloader.spec
--- old/yast2-bootloader-4.2.21/package/yast2-bootloader.spec 2020-04-02
18:13:23.000000000 +0200
+++ new/yast2-bootloader-4.2.23/package/yast2-bootloader.spec 2020-04-23
17:47:20.000000000 +0200
@@ -17,7 +17,7 @@
Name: yast2-bootloader
-Version: 4.2.21
+Version: 4.2.23
Release: 0
Summary: YaST2 - Bootloader Configuration
License: GPL-2.0-or-later
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-bootloader-4.2.21/src/lib/bootloader/grub2_widgets.rb
new/yast2-bootloader-4.2.23/src/lib/bootloader/grub2_widgets.rb
--- old/yast2-bootloader-4.2.21/src/lib/bootloader/grub2_widgets.rb
2020-04-02 18:13:23.000000000 +0200
+++ new/yast2-bootloader-4.2.23/src/lib/bootloader/grub2_widgets.rb
2020-04-23 17:47:20.000000000 +0200
@@ -333,8 +333,8 @@
"<p><b>Enable Secure Boot Support</b> if checked enables Secure Boot
support.<br>" \
"This does not turn on secure booting. " \
"It only switches to the new secure-boot enabled boot data format. "
\
- "Note that this new format works only on z15 or later. " \
- "You cannot boot on z14 machines or older.</p>"
+ "Note that this new format works only on z15 or later and only for
zFCP disks. " \
+ "The system does not boot if these requirements are not met.</p>"
)
else
_(
@@ -362,8 +362,9 @@
Yast::Popup.ContinueCancel(
_(
- "The new secure-boot enabled boot data format works only on z15 and
later.\n\n" \
- "Older machines will not boot."
+ "The new secure-boot enabled boot data format works only on z15 " \
+ "and later and only for zFCP disks.\n\n" \
+ "The system does not boot if these requirements are not met."
)
)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-bootloader-4.2.21/src/lib/bootloader/grub_install.rb
new/yast2-bootloader-4.2.23/src/lib/bootloader/grub_install.rb
--- old/yast2-bootloader-4.2.21/src/lib/bootloader/grub_install.rb
2020-04-02 18:13:23.000000000 +0200
+++ new/yast2-bootloader-4.2.23/src/lib/bootloader/grub_install.rb
2020-04-23 17:47:20.000000000 +0200
@@ -39,6 +39,13 @@
if no_device_install?
Yast::Execute.on_target(cmd)
+ # workaround for arm on SLE15 SP2 (bsc#1167015)
+ # run grub2-install also non-removable if efi is there
+ if Yast::Arch.aarch64 && File.directory?("/sys/firmware/efi")
+ cmd.delete("--no-nvram")
+ cmd.delete("--removable")
+ Yast::Execute.on_target(cmd)
+ end
[]
else
return [] if devices.empty?
@@ -118,7 +125,8 @@
# working NVRAM, we either see no efivars at all (booted via non-EFI
entry
# point) or there is no efi variable exposed. Install grub in the
# removable location there.
- efi && Dir.glob("/sys/firmware/efi/efivars/*").empty?
+ # Workaround for SLE15 SP2 - run always as removable on arm (bsc#1167015)
+ Yast::Arch.aarch64 || (efi &&
Dir.glob("/sys/firmware/efi/efivars/*").empty?)
end
def no_device_install?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/yast2-bootloader-4.2.21/src/lib/bootloader/proposal_client.rb
new/yast2-bootloader-4.2.23/src/lib/bootloader/proposal_client.rb
--- old/yast2-bootloader-4.2.21/src/lib/bootloader/proposal_client.rb
2020-04-02 18:13:23.000000000 +0200
+++ new/yast2-bootloader-4.2.23/src/lib/bootloader/proposal_client.rb
2020-04-23 17:47:20.000000000 +0200
@@ -361,8 +361,9 @@
if value && Yast::Arch.s390
Yast2::Popup.show(
_(
- "The new secure-boot enabled boot data format works only on z15
and later.\n\n" \
- "Older machines will not boot."
+ "The new secure-boot enabled boot data format works only on z15
" \
+ "and later and only for zFCP disks.\n\n" \
+ "The system does not boot if these requirements are not met."
),
headline: :warning, buttons: :ok
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/yast2-bootloader-4.2.21/test/grub_install_test.rb
new/yast2-bootloader-4.2.23/test/grub_install_test.rb
--- old/yast2-bootloader-4.2.21/test/grub_install_test.rb 2020-04-02
18:13:23.000000000 +0200
+++ new/yast2-bootloader-4.2.23/test/grub_install_test.rb 2020-04-23
17:47:20.000000000 +0200
@@ -37,6 +37,10 @@
end
end
+ before do
+ allow(::File).to receive(:directory?).and_return(false)
+ end
+
context "initialized with efi: true" do
subject { Bootloader::GrubInstall.new(efi: true) }
@@ -49,12 +53,12 @@
subject.execute(secure_boot: true)
end
- it "runs grub2-install with --suse-force-signed on aarch64" do
+ it "runs grub2-install with --suse-force-signed on aarch64 with secure
boot" do
stub_arch("aarch64")
stub_efivars
expect(Yast::Execute).to receive(:on_target)
- .with([/grub2-install/, anything, "--suse-force-signed", anything,
anything])
+ .with([/grub2-install/, anything, "--suse-force-signed", anything,
anything, anything, anything])
subject.execute(secure_boot: true)
end
@@ -92,7 +96,17 @@
it "runs with target arm64-efi on aarch64" do
stub_arch("aarch64")
stub_efivars
- expect_grub2_install("arm64-efi")
+ expect_grub2_install("arm64-efi", removable: true)
+
+ subject.execute(devices: [])
+ end
+
+ it "runs twice as removable and non removable on aarch64 with efi vars
(bsc#1167015)" do
+ stub_arch("aarch64")
+ stub_efivars
+ allow(::File).to receive(:directory?).and_return(true)
+ expect_grub2_install("arm64-efi", removable: false)
+ expect_grub2_install("arm64-efi", removable: true)
subject.execute(devices: [])
end
@@ -133,7 +147,7 @@
it "do not raise exception if secure_boot: true passed" do
stub_arch("x86_64")
- expect { subject.execute(secure_boot: true) }.to_not
raise_error(RuntimeError)
+ expect { subject.execute(secure_boot: true) }.to_not raise_error
end
it "runs for each device passed in devices" do