Marcus Meissner
f5a6a78540
- weak-modules2: Run mkinitrd in posttrans if $INITRD_IN_POSTTRANS is set (fate#313506) - regenerate-initrd-posttrans: Run mkinitrd_setup - Add macros for regenerating the initrd in %posttrans (fate#313506). OBS-URL: https://build.opensuse.org/request/show/229365 OBS-URL: https://build.opensuse.org/package/show/Base:System/suse-module-tools?expand=0&rev=13
16 lines
492 B
Plaintext
16 lines
492 B
Plaintext
# Packages installing files and binaries that end up in the initrd should
|
|
# call these macros in their post(trans) scriptlets to have the initrd
|
|
# regenerated
|
|
# See also fate#313506
|
|
|
|
%regenerate_initrd_post \
|
|
mkdir -p /var/run/regenerate-initrd/ \
|
|
touch /var/run/regenerate-initrd/all \
|
|
%nil
|
|
|
|
%regenerate_initrd_posttrans \
|
|
if test -x /usr/lib/module-init-tools/regenerate-initrd-posttrans; then \
|
|
/bin/bash -${-/e/} /usr/lib/module-init-tools/regenerate-initrd-posttrans \
|
|
fi \
|
|
%nil
|