Bug 911580 - plymouth-branding-openSUSE (indirectly) calls mkinitrd in %post
Summary: plymouth-branding-openSUSE (indirectly) calls mkinitrd in %post
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: x86-64 openSUSE 13.2
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Steffen Winterfeldt
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-03 17:08 UTC by Christian Boltz
Modified: 2018-04-20 13:27 UTC (History)
2 users (show)

See Also:
Found By: Beta-Customer
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 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.