Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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.
Comment by Ronald van Haren (pressh) - Saturday, 29 January 2011, 12:18 GMT
that should have been the behavior. Can anyone confirm?

[edit]
Okay, I understand what is happening. grub.cfg get moved to .pacsave when grub2 is removed.
Not sure how to fix this...
Comment by Ronald van Haren (pressh) - Saturday, 29 January 2011, 13:17 GMT
not much I can do if you already upgraded, just copy the .pacsave file back.

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

Loading...