Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 6137b9c364454e8af99b0341a6c149ab > scriptlet

grub2-common-2.02.0-1.mga6.armv5tl.rpm

POSTTRANS

/bin/sh
# On update re-install grub2 to where it was installed by drakboot if possible,
# otherwise next boot may fail due to mismatched boot code.
   if [ -f /boot/grub2/updtrans ] && [ -f /boot/grub2/install.sh -a -x /usr/sbin/detectloader ] && [ "$DURING_INSTALL" != "1" ] ; then
		LOADER=$(/usr/sbin/detectloader)
		[ "$LOADER" = "GRUB2" ] && /boot/grub2/install.sh ||:
		rm -f /boot/grub2/updtrans
   fi
   
# Don't let rpmdrake ask users to shoot themselves in feet! Mga#17263
		rm -f /etc/default/grub.rpm*

Triggers

grub2 < 2.02-0.git10101.4

/bin/sh
rm -f /boot/grub2/grub.cfg.rpmnew
grub2-mkconfig -o /boot/grub2/grub.cfg && rm -f /boot/grub2/grub.cfg.rpmsave
# Take this opportunity to remove some unwanted logs
rm -f /var/log/grub2_preun.log
rm -f /var/log/grub2_post.log
rm -f /var/log/grub2_theme_postun.log

grub2-efi < 2.02-0.git10101.4

/bin/sh
rm -f /boot/grub2/grub.cfg.rpmnew
grub2-mkconfig -o /boot/grub2/grub.cfg && rm -f /boot/grub2/grub.cfg.rpmsave
# Take this opportunity to remove some unwanted logs
rm -f /var/log/grub2_preun.log
rm -f /var/log/grub2_post.log
rm -f /var/log/grub2_theme_postun.log