diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-15 10:20:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-15 10:20:03 +0100 |
commit | d6e88bbaf6d2175f7a50b6978006379131ff35ba (patch) | |
tree | 265543aadc509d13b20e5b77b64c3526275d10e9 | |
parent | 3f468c02db3bff4bcf3cdedca28e12304f0e1bdc (diff) |
sys-kernel/dracut : rebuild the initramfs in pkg_postinst to pick up bash5
-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" |