void-packages/srcpkgs/zfs/INSTALL
Andrew J. Hesford 07d71233a0 zfs: trigger dracut on install and remove patch artifacts
dracut should be triggered to work around ordering issues in
https://github.com/void-linux/void-packages/issues/22817 that can
otherwise result in missing ZFS modules in initramfs images.
2020-06-17 17:23:16 -04:00

14 lines
426 B
Plaintext

case "${ACTION}" in
post)
if [ -x usr/bin/dracut ]; then
# Include new modules in all initramfs instances when possible,
# as simultaneous updates of linux and zfs may trigger creation
# of images without modules and unable to boot from ZFS pools.
#
# See https://github.com/void-linux/void-packages/issues/22817
echo "Regenerating initramfs, please wait..."
usr/bin/dracut -f -q --regenerate-all
fi
;;
esac