Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > 710abaa78b9e7a15f34643128e40aa08 > scriptlet

dracut-025-8.mga3.i586.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 ||: