FS#22657 - [grub2-common] new version in testing doesn't import previous grub.cfg
Attached to Project:
Arch Linux
Opened by Frederic Bezies (fredbezies) - Saturday, 29 January 2011, 11:37 GMT
Last edited by Ronald van Haren (pressh) - Saturday, 29 January 2011, 13:17 GMT
Opened by Frederic Bezies (fredbezies) - Saturday, 29 January 2011, 11:37 GMT
Last edited by Ronald van Haren (pressh) - Saturday, 29 January 2011, 13:17 GMT
|
Details
Description: Simple to reproduce.
Activate testing and install grub2 Previous grub.cfg is not imported and used as default grub.r Additional info: grub2-common 1.99~rc1-2 Steps to reproduce: See details above. What about using a previous grub.cfg file if available ? |
This task depends upon
Closed by Ronald van Haren (pressh)
Saturday, 29 January 2011, 13:17 GMT
Reason for closing: Fixed
Additional comments about closing: 1.99rc-3 has an install hook to prevent this when upgrading from 1.98.
Saturday, 29 January 2011, 13:17 GMT
Reason for closing: Fixed
Additional comments about closing: 1.99rc-3 has an install hook to prevent this when upgrading from 1.98.
[edit]
Okay, I understand what is happening. grub.cfg get moved to .pacsave when grub2 is removed.
Not sure how to fix this...
I've added the following to the post_install hook:
########################################################################
if [ -f /boot/grub/grub.cfg.pacsave ]; then
echo "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
install -Dm644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
fi
########################################################################
that should prevent this from happening for people who upgrade from grub2 1.98