Description: Update the default GRUB config name for GRUB2.
Author: Andrey Rahmatullin <wrar@wrar.name>
Bug-Debian: http://bugs.debian.org/512112
Last-Update: 2012-05-01

--- a/conf/common.conf
+++ b/conf/common.conf
@@ -53,9 +53,9 @@
 
 ### grub
 # ChangeGrubMenu yes
-# GrubMenuFile /boot/grub/menu.lst
-# AlternateGrubMenuFile /boot/grub/menu-suspended.lst
-# BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak
+# GrubMenuFile /boot/grub/grub.cfg
+# AlternateGrubMenuFile /boot/grub/grub-suspended.cfg
+# BackupGrubMenuFile /var/backups/grub.cfg.hibernate
 
 # see http://bugs.debian.org/317479
 # RemountXFSBoot yes
--- a/scriptlets.d/grub
+++ b/scriptlets.d/grub
@@ -1,11 +1,12 @@
 # -*- sh -*-
 # vim:ft=sh:ts=8:sw=4:noet
 
-GRUB_MENU_DFLT_BACKUP_FILE="/var/backups/grub.conf.hibernate"
+GRUB_MENU_FILE="/boot/grub/grub.cfg"
+GRUB_MENU_DFLT_BACKUP_FILE="/var/backups/grub.cfg.hibernate"
 
 AddConfigHandler GrubConfigOptions
 AddConfigHelp "ChangeGrubMenu <boolean>" "Change grub's config file to show system is suspended before suspending and restore after resume."
-AddConfigHelp "GrubMenuFile <filename>" "Filename of grub's config file. Default is /boot/grub/grub.conf."
+AddConfigHelp "GrubMenuFile <filename>" "Filename of grub's config file. Default is ${GRUB_MENU_FILE}."
 AddConfigHelp "AlternateGrubMenuFile <filename>" "Filename of the grub config file to put in place when the machine is suspended. If this is not specified, the script will add a small header to the existing grub menu."
 AddConfigHelp "BackupGrubMenuFile <filename>" "Where to keep a backup of your real grub menu file. Defaults to ${GRUB_MENU_DFLT_BACKUP_FILE}."
 
@@ -14,8 +15,6 @@
 AddLongOption 'restore-grub'
 AddOptionHelp '-g, --restore-grub' 'Restores the grub menu to normal (use if a resume was not completed sucessfully) and exits the script. A suspend is not performed.'
 
-GRUB_MENU_FILE="/boot/grub/grub.conf"
-
 GRUB_BEGIN_SENTINEL="### BEGIN HIBERNATE SENTINEL"
 GRUB_END_SENTINEL="### END HIBERNATE SENTINEL"
 
