Sophie

Sophie

distrib > Mageia > 8 > i586 > media > nonfree-updates > by-pkgid > b7d5f4160e1490887db41214a8aa4593 > scriptlet

microcode-0.20220207-1.mga8.nonfree.noarch.rpm

POSTIN

/bin/sh
if [ -z "$DURING_INSTALL" ] ; then
  kernel=$(uname -r)
  if [ -d /usr/lib/modules/$kernel ] ; then
    # rebuild initrd for currently running kernel
    /usr/bin/dracut -f
  else
    # rebuild initrd for most recently installed kernel
    kernel=$(ls -1t /usr/lib/modules | head -1)
    /usr/bin/dracut -f /boot/initrd-$kernel.img $kernel
  fi
fi