suse-module-tools/macros.initrd
Marcus Meissner f5a6a78540 Accepting request 229365 from home:michal-m:branches:Base:System
- 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
2014-04-09 09:56:47 +00:00

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