Bug 1202352 - mdadm: replace mkinitrd wrapper with native dracut
mdadm: replace mkinitrd wrapper with native dracut
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Coly Li
E-mail List
:
Depends on:
Blocks: 1202351
  Show dependency treegraph
 
Reported: 2022-08-12 06:59 UTC by Antonio Feijoo
Modified: 2022-12-27 13:17 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Feijoo 2022-08-12 06:59:08 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
Comment 1 Coly Li 2022-08-13 15:43:28 UTC
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
Comment 2 Antonio Feijoo 2022-08-16 10:24:31 UTC
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.
Comment 3 Coly Li 2022-09-29 15:54:31 UTC
(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
Comment 4 Coly Li 2022-11-24 09:02:28 UTC
(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.
Comment 5 Coly Li 2022-12-03 14:08:59 UTC
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
Comment 6 Coly Li 2022-12-03 14:09:18 UTC
close as fixed.