Bug 1203019

Summary: yast2: replace mkinitrd wrapper with native dracut
Product: [openSUSE] openSUSE Tumbleweed Reporter: Antonio Feijoo <antonio.feijoo>
Component: YaST2Assignee: YaST Team <yast-internal>
Status: CONFIRMED --- QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: mfilka
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://trello.com/c/6NouwiGv
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1202351    

Description Antonio Feijoo 2022-09-01 10:35:41 UTC
+++ This bug was initially created as a clone of Bug #1202351 +++

Upstream support removed in March 2021 (https://github.com/dracutdevs/dracut/commit/43df4ee2) and deprecation announcement on factory mailing list in May 2021 (https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/GDAZ7TVXS2BAXENVBAMHVXVHLSR7D7NQ/).

ALP will not ship the mkinitrd wrapper, so it's better to get rid of it in Tumbleweed first.

References:

- yast2

/usr/share/YaST2/modules/Initrd.rb:72:      # parametr for mkinitrd because of splash screen
/usr/share/YaST2/modules/Initrd.rb:75:      # Additional parameters for mkinitrd
/usr/share/YaST2/modules/Initrd.rb:391:                "/lib/mkinitrd/scripts/setup-splash.sh"
/usr/share/YaST2/modules/Initrd.rb:400:          "/sbin/mkinitrd %1 %2 >> %3 2>&1",
/usr/share/YaST2/modules/Initrd.rb:405:          File.join(Directory.logdir, "y2logmkinitrd").shellescape
/usr/share/YaST2/modules/Initrd.rb:411:            Ops.add(Directory.logdir, "/y2logmkinitrd")
/usr/share/YaST2/modules/Initrd.rb:434:    # Set the -s parameter of mkinitrd
/usr/share/YaST2/modules/Initrd.rb:463:    # Get additional parameters for mkinitrd
/usr/share/YaST2/modules/Initrd.rb:464:    # @return [String] additional mkinitrd parameters
/usr/share/YaST2/modules/Initrd.rb:469:    # Set additional parameters for mkinitrd
/usr/share/YaST2/modules/Initrd.rb:470:    # @param [String] params string additional mkinitrd parameters

# rpm -qf /usr/share/YaST2/modules/Initrd.rb
yast2-4.5.10-1.1.x86_64


- yast2-country

/usr/share/YaST2/modules/Timezone.rb:85:      # if mkinitrd should be called at the end
/usr/share/YaST2/modules/Timezone.rb:86:      @call_mkinitrd = false
/usr/share/YaST2/modules/Timezone.rb:467:      Builtins.y2milestone("calling mkinitrd...")
/usr/share/YaST2/modules/Timezone.rb:470:        "/sbin/mkinitrd >> /var/log/YaST2/y2logmkinitrd 2>> /var/log/YaST2/y2logmkinitrd"
/usr/share/YaST2/modules/Timezone.rb:860:      CallMkinitrd() if @call_mkinitrd && !Stage.initial
/usr/share/YaST2/modules/Timezone.rb:1081:    publish :variable => :call_mkinitrd, :type => "boolean"

# rpm -qf /usr/share/YaST2/modules/Timezone.rb
yast2-country-4.5.1-1.1.x86_64


- yast2-kdump

/usr/share/YaST2/modules/Kdump.rb:419:      update_command = (using_fadump? ? "/usr/sbin/mkdumprd -f" : "/sbin/mkinitrd")
/usr/share/YaST2/modules/Kdump.rb:426:      update_logfile = File.join(Directory.logdir, "y2logmkinitrd")

# rpm -qf /usr/share/YaST2/modules/Kdump.rb
yast2-kdump-4.5.3-1.1.x86_64