forked from pool/suse-module-tools
58d0049314
- Use /run instead of deprecated /var/run This can have sever consequences if this package uses /var/run. It may be installed before filesystem package generating the /run tmpfs and predict it to generate the link /var/run -> /run. Later dracut convertfs kicks in to generate it, but it has issues. bsc#922676 OBS-URL: https://build.opensuse.org/request/show/329708 OBS-URL: https://build.opensuse.org/package/show/Base:System/suse-module-tools?expand=0&rev=25
16 lines
484 B
Plaintext
16 lines
484 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 /run/regenerate-initrd/ \
|
|
touch /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
|