Sophie

Sophie

distrib > Mageia > cauldron > x86_64 > media > core-release > by-pkgid > e4a073b205eae43dd5cc0b60837841d6 > scriptlet

grub2-common-2.06-21.mga9.x86_64.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