Sophie

Sophie

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

microcode-0.20220809-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