Bugzilla – Bug 1202352
mdadm: replace mkinitrd wrapper with native dracut
Last modified: 2022-12-27 13:17:09 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. 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
I almost have no any idea about what to do for this bug. Can anybody give me a hint, why the mkinitrd wrapper should be removed, and how to use the native dracut. Thanks in advance. Coly Li
Checking the mdadm.changes file, the latest entries referencing mkinitrd are: ------------------------------------------------------------------- Mon Jul 7 01:52:35 UTC 2014 - nfbrown@suse.com - Remove mkinitrd scripts again. "libguestfs" now includes them so "guestfs" does not need us to. (bnc#883873) ------------------------------------------------------------------- Thu Jun 26 02:54:05 UTC 2014 - nfbrown@suse.com - add mkinitrd scripts back in. They are needed by "guestfs" (bnc#883873) ------------------------------------------------------------------- Thu Jun 12 02:08:31 UTC 2014 - nfbrown@suse.com - mdadm.spec: change calling of mkinitrd to use the %regenerate_initrd_{post,posttrans} macros to optimise initrd regeneration. (bnc#881780) ------------------------------------------------------------------- Tue Jun 10 04:05:48 UTC 2014 - nfbrown@suse.com - new upstream release 3.3.1, incorporates all current patches and includes assorted other minor fixes. - 0001-Makefile-install-mdadm-grow-continue-.service.patch make sure mdadm-grow-continue.service is installed properly. - remove mkinitrd files, we now use dracut The mdadm.spec file contains: mdadm.spec:35:PreReq: %{_sbindir}/mkinitrd It seems that this requirement was needed because the mkinitrd script was being called directly from the mdadm.spec file, but this was replaced by the regenerate_initrd_post macro quite some time ago: https://build.opensuse.org/request/show/236929 I can't find any other reference to mkinitrd within the code, but maybe you could ask Neil if it's enough to remove the PreReq line from the spec file.
(In reply to Antonio Feijoo from comment #2) [snipped] > > The mdadm.spec file contains: > > mdadm.spec:35:PreReq: %{_sbindir}/mkinitrd > > > It seems that this requirement was needed because the mkinitrd script was > being called directly from the mdadm.spec file, but this was replaced by the > regenerate_initrd_post macro quite some time ago: > https://build.opensuse.org/request/show/236929 > > I can't find any other reference to mkinitrd within the code, but maybe you > could ask Neil if it's enough to remove the PreReq line from the spec file. Thanks for the detailed information. I also read the long story from bug #881780, and have a conclusion exactly same as your suggestion. I will do the change soon. Very helpful hint! Coly Li
(In reply to Coly Li from comment #3) > (In reply to Antonio Feijoo from comment #2) > [snipped] > > > > The mdadm.spec file contains: > > > > mdadm.spec:35:PreReq: %{_sbindir}/mkinitrd > > > > > > It seems that this requirement was needed because the mkinitrd script was > > being called directly from the mdadm.spec file, but this was replaced by the > > regenerate_initrd_post macro quite some time ago: > > https://build.opensuse.org/request/show/236929 > > > > I can't find any other reference to mkinitrd within the code, but maybe you > > could ask Neil if it's enough to remove the PreReq line from the spec file. > > Thanks for the detailed information. I also read the long story from bug > #881780, and have a conclusion exactly same as your suggestion. > > I will do the change soon. Very helpful hint! The change is done, I will submit it with other fix once the other once is verfied.
The change is submitted and accepted in openSUSE Factory now. Here I close this bug report as fixed. If there is still more things to fix on this bug report, please reopen it. Thanks for the information and hint. Coly Li
close as fixed.