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 ||: