2014-04-09 11:56:47 +02:00
|
|
|
# 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 \
|
2015-09-19 08:10:30 +02:00
|
|
|
mkdir -p /run/regenerate-initrd/ \
|
|
|
|
touch /run/regenerate-initrd/all \
|
2014-04-09 11:56:47 +02:00
|
|
|
%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
|