Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-updates > by-pkgid > 6193c5a894548eb08c9e9cb950d32fd8 > scriptlet

grub2-efi-2.00-46.2.mga3.i586.rpm

PREUN

/bin/sh
exec > /var/log/grub2_preun.log 2>&1
# Only if uninstalling
if [ $1 -eq 0 ]; then
rm -rf /boot/grub2/i386-efi
rm -rf /boot/grub2/locale
fi

POSTIN

/bin/sh
exec > /var/log/grub2_post.log 2>&1
# Determine the partition with /boot
BOOT_PARTITION=$(df -h /boot |(read; awk '{print $1; exit}'))

# Generate core.img, but don't let it be installed in boot sector
grub2-install --directory=/usr/lib/grub/i386-efi --grub-setup=/bin/true $BOOT_PARTITION

# Generate grub.cfg only on install
if [ $1 -eq 1 ]; then
    grub2-mkconfig -o /boot/grub2/grub.cfg
fi