Package: grub2 Version: 1.98 Severity: wishlist Tags: patch In the wishlist item tracked by: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=585563
we taught grub-mkconfig to accept a -t ${TARGET_ROOT} argument which behaves in a similar manner as 'grub-install --root-directory=/target'. We also need to teach some of the helper scripts about this environment variable. The patch proposed in this wishlist item provides the functionality for 10_linux.in so that it functions properly when the user specifies the -t argument to grub-mkconfig. -- System Information: Debian Release: squeeze/sid APT prefers lucid-updates APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-22-generic (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- util/grub.d/10_linux.in.orig 2010-06-02 22:36:31.958839282 -0600 +++ util/grub.d/10_linux.in 2010-06-02 22:38:52.512147109 -0600 @@ -110,7 +110,7 @@ EOF EOF } -list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do +list=`for i in ${TARGET_ROOT}/boot/vmlinu[xz]-* /vmlinu[xz]-* ; do if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi done` prepare_boot_cache=