https://bugzilla.suse.com/show_bug.cgi?id=1202351
Bug ID: 1202351 Summary: dracut: remove mkinitrd wrapper Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: dracut-maintainers@suse.de Reporter: antonio.feijoo@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: ---
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/G...).
ALP will not ship the mkinitrd wrapper, so it's better to get rid of it in Tumbleweed first.
Affected packages that need to be updated before (at least):
# zypper se --requires mkinitrd Loading repository data... Reading installed packages...
S | Name | Summary | Type ---+---------------------+----------------------------------------------------+-------- | kernel-debug | A Debug Version of the Kernel | package i+ | kernel-default | The Standard Kernel | package | kernel-default-base | The Standard Kernel - base modules | package | kernel-kvmsmall | The Small Developer Kernel for KVM | package | kernel-pae | Kernel with PAE Support | package | kernel-vanilla | The Standard Kernel - without any SUSE patches | package i | mdadm | Utility for configuring "MD" software RAID devices | package
https://bugzilla.suse.com/show_bug.cgi?id=1202351
Antonio Feijoo antonio.feijoo@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |1202352
https://bugzilla.suse.com/show_bug.cgi?id=1202351
Antonio Feijoo antonio.feijoo@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |1202353
https://bugzilla.suse.com/show_bug.cgi?id=1202351 https://bugzilla.suse.com/show_bug.cgi?id=1202351#c1
Antonio Feijoo antonio.feijoo@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jbohac@suse.com Flags| |needinfo?(jbohac@suse.com)
--- Comment #1 from Antonio Feijoo antonio.feijoo@suse.com --- I also found references to mkinitrd in mkdumprd and the USE_MKINITRD config option, although it is not required by the kdump package. Does kdump need some tweaking too?
https://bugzilla.suse.com/show_bug.cgi?id=1202351 https://bugzilla.suse.com/show_bug.cgi?id=1202351#c2
--- Comment #2 from Jiri Bohac jbohac@suse.com --- (In reply to Antonio Feijoo from comment #1)
I also found references to mkinitrd in mkdumprd and the USE_MKINITRD config option, although it is not required by the kdump package. Does kdump need some tweaking too?
yes, the mkdumprd script needs tweaking
kdumptool, on the other hand does not - the string "mkinitrd" and USE_MKINITRD just define which kdump options are applicable for which part kdumptool's job; "initrd" refers to the phase where the kdump initramfs is being build, regardless of which program is used to do so.
https://bugzilla.suse.com/show_bug.cgi?id=1202351
Antonio Feijoo antonio.feijoo@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |1202443
https://bugzilla.suse.com/show_bug.cgi?id=1202351 https://bugzilla.suse.com/show_bug.cgi?id=1202351#c3
Antonio Feijoo antonio.feijoo@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(jbohac@suse.com) |
--- Comment #3 from Antonio Feijoo antonio.feijoo@suse.com --- (In reply to Jiri Bohac from comment #2)
(In reply to Antonio Feijoo from comment #1)
I also found references to mkinitrd in mkdumprd and the USE_MKINITRD config option, although it is not required by the kdump package. Does kdump need some tweaking too?
yes, the mkdumprd script needs tweaking
Ok, thanks for your feedback. Created bug #1202443 for that.
https://bugzilla.suse.com/show_bug.cgi?id=1202351 https://bugzilla.suse.com/show_bug.cgi?id=1202351#c4
--- Comment #4 from Antonio Feijoo antonio.feijoo@suse.com --- More packages that need to be fixed, although their spec file does not include a explicit dependency:
- aaa_base
/usr/sbin/refresh_initrd:41:exec -a mkinitrd /sbin/mkinitrd ${1+"$@"}
# rpm -qf /usr/sbin/refresh_initrd aaa_base-84.87+git20220727.43b9e53-1.1.x86_64
- x11-tools
/usr/lib/nvidia/pre-install:8: mkinitrd
# rpm -qf /usr/lib/nvidia/pre-install x11-tools-0.1-212.7.noarch
- 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
https://bugzilla.suse.com/show_bug.cgi?id=1202351
Antonio Feijoo antonio.feijoo@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on| |1203019
https://bugzilla.suse.com/show_bug.cgi?id=1202351
Antonio Feijoo antonio.feijoo@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.suse.com/s | |how_bug.cgi?id=1203025
https://bugzilla.suse.com/show_bug.cgi?id=1202351
Antonio Feijoo antonio.feijoo@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.suse.com/s | |how_bug.cgi?id=1203052
https://bugzilla.suse.com/show_bug.cgi?id=1202351
Bug 1202351 depends on bug 1202443, which changed state.
Bug 1202443 Summary: kdump: replace mkinitrd wrapper with native dracut https://bugzilla.suse.com/show_bug.cgi?id=1202443
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugzilla.suse.com/show_bug.cgi?id=1202351 https://bugzilla.suse.com/show_bug.cgi?id=1202351#c5
--- Comment #5 from Jiri Bohac jbohac@suse.com --- (In reply to Antonio Feijoo from comment #4)
- yast2-kdump
/usr/share/YaST2/modules/Kdump.rb:419: update_command = (using_fadump? ? "/usr/sbin/mkdumprd -f" : "/sbin/mkinitrd")
this pece of yast2-kdump code does not make sense to me; it should just call mkdumprd and it will decide whether fadump or non-fadump initrd is to be generated
https://bugzilla.suse.com/show_bug.cgi?id=1202351
Bug 1202351 depends on bug 1202352, which changed state.
Bug 1202352 Summary: mdadm: replace mkinitrd wrapper with native dracut https://bugzilla.suse.com/show_bug.cgi?id=1202352
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugzilla.suse.com/show_bug.cgi?id=1202351
Bug 1202351 depends on bug 1202353, which changed state.
Bug 1202353 Summary: kernel: replace mkinitrd wrapper with native dracut https://bugzilla.suse.com/show_bug.cgi?id=1202353
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugzilla.suse.com/show_bug.cgi?id=1202351
Bug 1202351 depends on bug 1203019, which changed state.
Bug 1203019 Summary: yast2: replace mkinitrd wrapper with native dracut https://bugzilla.suse.com/show_bug.cgi?id=1203019
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED
https://bugzilla.suse.com/show_bug.cgi?id=1202351 https://bugzilla.suse.com/show_bug.cgi?id=1202351#c6
--- Comment #6 from Antonio Feijoo antonio.feijoo@suse.com --- All dependent packages fixes, now it's time for dracut:
https://github.com/openSUSE/dracut/pull/259