Bug 911580

Summary: plymouth-branding-openSUSE (indirectly) calls mkinitrd in %post
Product: [openSUSE] openSUSE Tumbleweed Reporter: Christian Boltz <suse-beta>
Component: BasesystemAssignee: Steffen Winterfeldt <snwint>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: bwiedemann, rbrown
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 13.2   
See Also: http://bugzilla.opensuse.org/show_bug.cgi?id=1066666
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Christian Boltz 2015-01-03 17:08:56 UTC
plymouth-branding-openSUSE (indirectly) calls mkinitrd in %post:

( 15/353) Installing: plymouth-branding-openSUSE-13.2-10.23 ..........................................................[finished]
Additional rpm output:
Creating initrd: /boot/initrd-3.17.1-1.g5c4d099-desktop
Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force --force-drivers "processor thermal ahci ata_piix ata_generic piix ide_pci_generic fan jbd ext3 md raid1 edd" /boot/initrd-3.17.1-1.g5c4d099-desktop 3.17.1-1.g5c4d099-desktop


# rpm -q --scripts plymouth-branding-openSUSE
postinstall scriptlet (using /bin/sh):
[...]
   if [ ! -e /.buildenv ]; then
     /usr/sbin/plymouth-set-default-theme -R openSUSE
[...]


"-R" means rebuilding the initrd.

Please do a separate mkinitrd call in %posttrans to avoid that mkinitrd runs multiple times. (You can probably steal the %post and %posttrans script from the kernel-firmware package ;-)
Comment 1 Bernhard Wiedemann 2016-10-31 20:17:19 UTC
I was going to report this as
plymouth-branding-openSUSE calls dracut via gfxboot
(because when updating my tumbleweed this took many minutes to re-build initrds for all 3 installed kernels that would be rebuilt in posttrans anyway)

branding-openSUSE.spec now has
%post -n gfxboot-branding-openSUSE
gfxboot --update-theme openSUSE
%endif

It still should use posttrans as we do in all other places meanwhile
e.g. see lvm2.spec for regenerate_initrd_post*
Comment 2 Steffen Winterfeldt 2018-04-20 13:27:13 UTC
Sorry, we didn't find the time to look into this. If this is still an issue in recent Tumbleweed, feel free to re-open.