Bug 1203052 - aaa_base: fix or remove the refresh_initrd script
aaa_base: fix or remove the refresh_initrd script
Status: NEW
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Current
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Ruediger Oertel
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-09-02 07:08 UTC by Antonio Feijoo
Modified: 2022-12-20 13:39 UTC (History)
3 users (show)

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-09-02 07:08:26 UTC
I came across the refresh_initrd script while searching for packages that still use mkinitrd in Tumbleweed, because it's deprecated and will be removed in the near future (see bug #1202351).

But, this script it's not even working with the current mkinitrd version, which is just a wrapper that internally calls dracut and update-bootloader. If "$SPLASH = yes", it's called with the "-s auto" arguments, which are not implemented, producing "mkinitrd: boot splash not yet supported" (see https://github.com/openSUSE/dracut/blob/adedcbc79f4a467380147e5bba2e4f2402252c51/suse/mkinitrd-suse.sh#L281-L283).

Also, it doesn't detect a change of a kernel module if it's compressed. The code should be:

-    module=${module%.ko}
+    module=${module%.ko*}

So, I don't know the plans or current usage of this script, but it would require some tweaking, or just removing it if it's no longer used.
Comment 1 Ruediger Oertel 2022-09-02 08:14:25 UTC
Werner, you are listed as author in the script, do we want to fix or drop this ?
Comment 2 Dr. Werner Fink 2022-09-12 06:46:25 UTC
(In reply to Ruediger Oertel from comment #1)
> Werner, you are listed as author in the script, do we want to fix or drop
> this ?

If mkinitrd really vanishes then refresh_initrd isn't needed anymore.
Does mkinitrd vanish and if so then when does this happen?
Comment 3 Antonio Feijoo 2022-09-12 07:01:35 UTC
We have jsc#PED-265 for ALP, but there are several core packages that need some fixes first (kernel, kdump, yast2...), so we are already moving this for factory.
Comment 4 Dr. Werner Fink 2022-12-20 13:39:50 UTC
Compare with attachment https://bugzilla.opensuse.org/attachment.cgi?id=863597 for bug boo#1204897