Package: grub-common Version: 1.99-21 Followup-For: Bug #603832 I've just been looking at this again. I think the best overall solution would be to move 20_linux_xen to a priority before 10_linux (e.g. 08_linux_xen). If someone has gone to the effort of installing Xen then it is very likely that the want to boot it. Simply modifying GRUB_DEFAULT is unsatisfactory since any new kernel which is installed will buimp the Xen entries up and require modification.
If changing the priority of the Xen scriptlet is not acceptable then perhaps it could be made easier for folks to locally change the priority in a way which is visible to the package manager and conffile handling? I've enhanced my previous patch somewhat, with this it is sufficient to: ln -s /etc/grub.d/20_linux_xen /etc/grub.d/08_linux_xen add GRUB_PRIORITY_XEN=08 to /etc/default/grub. Another option might be to make all files under /etc/grub.d symlinks to some other location (still under /etc for conffile tracking) in order to allow admins to tweak the priority ordering by renaming the symlinks while still leaving the actual scriptlets visible to the package manager. Either way I think it is important to fix this issue for Wheezy. Cheers, Ian. The patch, I couldn't figure out the Makefile.util.def stuff sufficiently well to add the 08_linux_xen symlink by default... === modified file 'util/grub-mkconfig.in' --- util/grub-mkconfig.in 2011-04-08 09:53:17 +0000 +++ util/grub-mkconfig.in 2012-04-29 10:46:45 +0000 @@ -241,6 +241,7 @@ GRUB_CMDLINE_XEN_DEFAULT \ GRUB_CMDLINE_NETBSD \ GRUB_CMDLINE_NETBSD_DEFAULT \ + GRUB_PRIORITY_XEN \ GRUB_TERMINAL_INPUT \ GRUB_TERMINAL_OUTPUT \ GRUB_SERIAL_COMMAND \ === modified file 'util/grub.d/20_linux_xen.in' --- util/grub.d/20_linux_xen.in 2011-04-13 11:57:26 +0000 +++ util/grub.d/20_linux_xen.in 2012-04-29 10:40:14 +0000 @@ -26,6 +26,11 @@ export TEXTDOMAIN=@PACKAGE@ export TEXTDOMAINDIR=@localedir@ +scriptname=$(basename $0) +if [ ${scriptname:0:2} != ${GRUB_PRIORITY_XEN:-20} ] ; then + exit 0 +fi + CLASS="--class gnu-linux --class gnu --class os --class xen" if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then -- System Information: Debian Release: wheezy/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages grub-common depends on: ii gettext-base 0.18.1.1-5 ii libc6 2.13-30 ii libdevmapper1.02.1 2:1.02.67-2 ii libfreetype6 2.4.9-1 ii libfuse2 2.8.7-2 ii zlib1g 1:1.2.6.dfsg-2 Versions of packages grub-common recommends: ii os-prober 1.52 Versions of packages grub-common suggests: pn desktop-base 6.0.7 pn grub-emu <none> pn multiboot-doc <none> pn xorriso <none> -- Configuration Files: /etc/grub.d/20_linux_xen changed [not included] -- no debconf information -- debsums errors found: debsums: changed file /usr/sbin/grub-mkconfig (from grub-common package) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org