Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 8f62b39a9c87f720f2887f9b4a7c6c75 > scriptlet

dracut-034-12.3.mga4.x86_64.rpm

POSTIN

/bin/sh
# (cg) Ensure that any resume swap partitions that are on LVM or raid are activated
if [ ! -f /etc/dracut.conf.d/51-mageia-resume.conf ]; then
  touch /etc/dracut.conf.d/51-mageia-resume.conf
  if grep -q " resume=" /proc/cmdline; then  
    dev="$(sed 's,.* resume=\([^ ]*\).*,\1,' /proc/cmdline)"
    if [ -n "$dev" ]; then
      echo "add_device+=\"$dev\"" >/etc/dracut.conf.d/51-mageia-resume.conf
    fi
  fi
fi

Triggers

dracut < 023-11

/bin/sh
# (cg) Fix world writable initrds due to CVE-2012-4453 (mga#7806)
chmod go-r /boot/initrd-3*.img ||: