Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package yast2-kdump for openSUSE:Factory checked in at 2022-09-13 15:07:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/yast2-kdump (Old) and /work/SRC/openSUSE:Factory/.yast2-kdump.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-kdump" Tue Sep 13 15:07:40 2022 rev:112 rq:1002781 version:4.5.4 Changes: -------- --- /work/SRC/openSUSE:Factory/yast2-kdump/yast2-kdump.changes 2022-08-23 14:26:26.275198548 +0200 +++ /work/SRC/openSUSE:Factory/.yast2-kdump.new.2083/yast2-kdump.changes 2022-09-13 15:07:41.740356544 +0200 @@ -1,0 +2,6 @@ +Mon Sep 12 08:24:53 UTC 2022 - Josef Reidinger <jreidin...@suse.com> + +- Allow kdump to run on transactional systems (bsc#1128853) +- 4.5.4 + +------------------------------------------------------------------- Old: ---- yast2-kdump-4.5.3.tar.bz2 New: ---- yast2-kdump-4.5.4.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-kdump.spec ++++++ --- /var/tmp/diff_new_pack.47xLRd/_old 2022-09-13 15:07:42.120357613 +0200 +++ /var/tmp/diff_new_pack.47xLRd/_new 2022-09-13 15:07:42.124357624 +0200 @@ -17,7 +17,7 @@ Name: yast2-kdump -Version: 4.5.3 +Version: 4.5.4 Release: 0 Summary: Configuration of kdump License: GPL-2.0-only ++++++ yast2-kdump-4.5.3.tar.bz2 -> yast2-kdump-4.5.4.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-kdump-4.5.3/package/yast2-kdump.changes new/yast2-kdump-4.5.4/package/yast2-kdump.changes --- old/yast2-kdump-4.5.3/package/yast2-kdump.changes 2022-08-01 14:01:10.000000000 +0200 +++ new/yast2-kdump-4.5.4/package/yast2-kdump.changes 2022-09-12 11:36:39.000000000 +0200 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Sep 12 08:24:53 UTC 2022 - Josef Reidinger <jreidin...@suse.com> + +- Allow kdump to run on transactional systems (bsc#1128853) +- 4.5.4 + +------------------------------------------------------------------- Mon Aug 1 11:53:29 UTC 2022 - David Diaz <dgonza...@suse.com> - Allow using kdump auto resize (related to jsc#SLE-18441) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-kdump-4.5.3/package/yast2-kdump.spec new/yast2-kdump-4.5.4/package/yast2-kdump.spec --- old/yast2-kdump-4.5.3/package/yast2-kdump.spec 2022-08-01 14:01:10.000000000 +0200 +++ new/yast2-kdump-4.5.4/package/yast2-kdump.spec 2022-09-12 11:36:39.000000000 +0200 @@ -17,7 +17,7 @@ Name: yast2-kdump -Version: 4.5.3 +Version: 4.5.4 Release: 0 Summary: Configuration of kdump License: GPL-2.0-only diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-kdump-4.5.3/src/modules/Kdump.rb new/yast2-kdump-4.5.4/src/modules/Kdump.rb --- old/yast2-kdump-4.5.3/src/modules/Kdump.rb 2022-08-01 14:01:10.000000000 +0200 +++ new/yast2-kdump-4.5.4/src/modules/Kdump.rb 2022-09-12 11:36:39.000000000 +0200 @@ -51,23 +51,24 @@ def main textdomain "kdump" - Yast.import "Progress" - Yast.import "Report" - Yast.import "Summary" - Yast.import "Message" - Yast.import "Map" - Yast.import "Bootloader" - Yast.import "Service" - Yast.import "Popup" Yast.import "Arch" + Yast.import "Bootloader" + Yast.import "Directory" + Yast.import "FileUtils" + Yast.import "Map" + Yast.import "Message" Yast.import "Mode" + Yast.import "Package" + Yast.import "PackagesProposal" + Yast.import "Popup" Yast.import "ProductControl" Yast.import "ProductFeatures" - Yast.import "PackagesProposal" - Yast.import "FileUtils" - Yast.import "Directory" - Yast.import "String" + Yast.import "Progress" + Yast.import "Report" + Yast.import "Service" Yast.import "SpaceCalculation" + Yast.import "String" + Yast.import "Summary" reset end @@ -405,6 +406,13 @@ # # @return [Boolean] whether successful def update_initrd + # when /boot is ro, we need to use transactional update to be able to + # rebuild initrd. In the end tu script below is used, but needs sauce + # around + if Package.IsTransactionalSystem + return update_initrd_with("transactional-update --continue kdump") + end + # For CaaSP we need an explicit initrd rebuild before the # first boot, when the root filesystem becomes read only. rebuild_cmd = "/usr/sbin/tu-rebuild-kdump-initrd" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-kdump-4.5.3/test/kdump_test.rb new/yast2-kdump-4.5.4/test/kdump_test.rb --- old/yast2-kdump-4.5.3/test/kdump_test.rb 2022-08-01 14:01:10.000000000 +0200 +++ new/yast2-kdump-4.5.4/test/kdump_test.rb 2022-09-12 11:36:39.000000000 +0200 @@ -1010,4 +1010,17 @@ end end end + + describe ".update_initrd" do + before do + allow(Yast::Package).to receive(:IsTransactionalSystem).and_return(false) + end + + it "runs transactional-update kdump on transactional systems" do + allow(Yast::Package).to receive(:IsTransactionalSystem).and_return(true) + expect(subject).to receive(:update_initrd_with).with("transactional-update --continue kdump").and_return(true) + + subject.update_initrd + end + end end