diff options
-rw-r--r-- | sys-kernel/dracut/dracut-048-r5.ebuild | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys-kernel/dracut/dracut-048-r5.ebuild b/sys-kernel/dracut/dracut-048-r5.ebuild index 563cc218..7c02e00c 100644 --- a/sys-kernel/dracut/dracut-048-r5.ebuild +++ b/sys-kernel/dracut/dracut-048-r5.ebuild @@ -113,7 +113,17 @@ src_install() { dodoc dracut.html } +_dracut_initramfs_regen() { + if [ -x $(which dracut) ]; then + dracut -N -f --no-hostonly-cmdline + fi +} + pkg_postinst() { + if [ $(stat -c %d:%i /) == $(stat -c %d:%i /proc/1/root/.) ]; then + _dracut_initramfs_regen + fi + if linux-info_get_any_version && linux_config_exists; then ewarn "" ewarn "If the following test report contains a missing kernel" |