Bug#604155: Windows 7 not in grub menu

Daniel Pocock daniel at pocock.com.au
Tue Jan 4 21:02:35 UTC 2011



Colin Watson wrote:
> On Sun, Nov 28, 2010 at 02:48:16PM +0100, Daniel Pocock wrote:
>   
>> # /etc/grub.d/30_os-prober
>> Found Windows 7 (loader) on /dev/sda1
>> menuentry "Windows 7 (loader) (on /dev/sda1)" {
>>    insmod part_msdos
>>    insmod ntfs
>>    set root='(hd0,msdos1)'
>>    search --no-floppy --fs-uuid --set a23821f33821c6df
>>    chainloader +1
>> }
>>
>> and this is update-grub:
>>
>> # update-grub
>> Generating grub.cfg ...
>> Found background image: moreblue-orbit-grub.png
>> Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
>> Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
>> Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
>> Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
>> Found linux image: /boot/vmlinuz-2.6.32-5-amd64
>> Found initrd image: /boot/initrd.img-2.6.32-5-amd64
>> done
>>     
>
> Please edit /usr/lib/grub/grub-mkconfig_lib to insert a line containing
> just 'set -x' near the top, and then run update-grub again and send us
> the output.  (You should revert the change to
> /usr/lib/grub/grub-mkconfig_lib afterwards.)
>
>   
Here it is - I also did an install on another box with Windows 7 already 
on the disk, didn't encounter the same problem, in each case I have been 
using the HTTP mirror to get the latest available squeeze packages and 
not just those in the beta DVD image.

root at debian6:/home/daniel# update-grub
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ datarootdir=/usr/share
+ datadir=/usr/share
+ bindir=/usr/bin
+ sbindir=/usr/sbin
+ echo grub
+ sed s,x,x,
+ pkgdatadir=/usr/share/grub
+ test x/usr/sbin/grub-probe = x
+ test x = x
+ echo grub-mkrelpath
+ sed s,x,x,
+ grub_mkrelpath=/usr/bin/grub-mkrelpath
+ which gettext
+
+ gettext=gettext
+ echo /boot/grub
+ sed s,x,x,
+ GRUB_PREFIX=/boot/grub
+ [ x = x ]
+ id -u
+ EUID=0
+ [ 0 != 0 ]
+ set /usr/sbin/grub-mkdevicemap dummy
+ test -f /usr/sbin/grub-mkdevicemap
+ :
+ set /usr/sbin/grub-probe dummy
+ test -f /usr/sbin/grub-probe
+ :
+ mkdir -p /boot/grub
+ test -e /boot/grub/device.map
+ :
+ /usr/sbin/grub-probe --target=device /
+ GRUB_DEVICE=/dev/mapper/vg00-root
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs_uuid
+ GRUB_DEVICE_UUID=e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ /usr/sbin/grub-probe --target=device /boot
+ GRUB_DEVICE_BOOT=/dev/mapper/vg00-root
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs_uuid
+ GRUB_DEVICE_BOOT_UUID=e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ /usr/sbin/grub-probe --target=fs /
+ GRUB_FS=ext2
+ test -f /etc/default/grub
+ . /etc/default/grub
+ GRUB_DEFAULT=0
+ GRUB_TIMEOUT=5
+ lsb_release -i -s
+ GRUB_DISTRIBUTOR=Debian
+ GRUB_CMDLINE_LINUX_DEFAULT=quiet
+ GRUB_CMDLINE_LINUX=
+ GRUB_DISABLE_OS_PROBER=true
+ [ x != x ]
+ termoutdefault=0
+ [ x = x ]
+ GRUB_TERMINAL_OUTPUT=gfxterm
+ termoutdefault=1
+ [ xgfxterm = xgfxterm ]
+ test -e /boot/grub/gfxterm.mod
+ [ ! -s /boot/grub/video.lst ]
+ [ -n  ]
+ path=/usr/share/grub/unicode.pf2
+ is_path_readable_by_grub /usr/share/grub/unicode.pf2
+ path=/usr/share/grub/unicode.pf2
+ test -e /usr/share/grub/unicode.pf2
+ :
+ /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pf2
+ :
+ return 0
+ GRUB_FONT_PATH=/usr/share/grub/unicode.pf2
+ [ unicode = ascii ]
+ break 2
+ [ -z /usr/share/grub/unicode.pf2 ]
+ export GRUB_DEVICE GRUB_DEVICE_UUID GRUB_DEVICE_BOOT 
GRUB_DEVICE_BOOT_UUID GRUB_FS GRUB_FONT_PATH GRUB_PRELOAD_MODULES 
GRUB_PREFIX
+ export GRUB_DEFAULT GRUB_HIDDEN_TIMEOUT GRUB_HIDDEN_TIMEOUT_QUIET 
GRUB_TIMEOUT GRUB_DEFAULT_BUTTON GRUB_HIDDEN_TIMEOUT_BUTTON 
GRUB_TIMEOUT_BUTTON GRUB_BUTTON_CMOS_ADDRESS GRUB_DISTRIBUTOR 
GRUB_CMDLINE_LINUX GRUB_CMDLINE_LINUX_DEFAULT GRUB_CMDLINE_XEN 
GRUB_CMDLINE_XEN_DEFAULT GRUB_CMDLINE_NETBSD GRUB_CMDLINE_NETBSD_DEFAULT 
GRUB_TERMINAL_INPUT GRUB_TERMINAL_OUTPUT GRUB_SERIAL_COMMAND 
GRUB_DISABLE_LINUX_UUID GRUB_DISABLE_LINUX_RECOVERY 
GRUB_DISABLE_NETBSD_RECOVERY GRUB_VIDEO_BACKEND GRUB_GFXMODE 
GRUB_BACKGROUND GRUB_THEME GRUB_GFXPAYLOAD_LINUX GRUB_DISABLE_OS_PROBER 
GRUB_INIT_TUNE GRUB_SAVEDEFAULT GRUB_BADRAM
+ test x/boot/grub/grub.cfg != x
+ rm -f /boot/grub/grub.cfg.new
+ exec
+ chmod 400 /boot/grub/grub.cfg.new
+ echo Generating grub.cfg ...
Generating grub.cfg ...
+ cat
+ grub_file_is_not_garbage /etc/grub.d/00_header
+ test -f /etc/grub.d/00_header
+ return 0
+ test -x /etc/grub.d/00_header
+ echo
+ echo ### BEGIN /etc/grub.d/00_header ###
+ /etc/grub.d/00_header
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ datarootdir=/usr/share
+ datadir=/usr/share
+ bindir=/usr/bin
+ sbindir=/usr/sbin
+ echo grub
+ sed s,x,x,
+ pkgdatadir=/usr/share/grub
+ test x = x
+ echo grub-probe
+ sed s,x,x,
+ grub_probe=/usr/sbin/grub-probe
+ test x = x
+ echo grub-mkrelpath
+ sed s,x,x,
+ grub_mkrelpath=/usr/bin/grub-mkrelpath
+ which gettext
+
+ gettext=gettext
+ [ x0 = x ]
+ [ x0 = xsaved ]
+ [ x5 = x ]
+ [ x = x ]
+ GRUB_GFXMODE=640x480
+ [ x = x ]
+ GRUB_DEFAULT_BUTTON=0
+ [ x0 = xsaved ]
+ [ x = x ]
+ GRUB_TIMEOUT_BUTTON=5
+ cat
+ [ x != x ]
+ cat
+ cat
+ [ -n  ]
+ cat /boot/grub/video.lst
+ cat
+ cat
+ cat
+ cat
+ cat
+ serial=0
+ gfxterm=0
+ [ xserial = xgfxterm ]
+ [ xgfxterm = xgfxterm ]
+ gfxterm=1
+ [ x0 = x1 ]
+ [ x1 = x1 ]
+ /usr/sbin/grub-probe --target=device /usr/share/grub/unicode.pf2
+ prepare_grub_to_access_device /dev/mapper/vg00-root
+ device=/dev/mapper/vg00-root
+ dmsetup status /dev/mapper/vg00-root
+ grep -q crypt[[:space:]]$
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=abstraction
+ abstraction=lvm
+ echo insmod lvm
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=partmap
+ partmap=msdos
+ echo insmod part_msdos
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs
+ fs=ext2
+ echo insmod ext2
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=drive
+ echo set root='(vg00-root)'
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs_uuid
+ fs_uuid=e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ echo search --no-floppy --fs-uuid --set 
e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ make_system_path_relative_to_its_root /usr/share/grub/unicode.pf2
+ /usr/bin/grub-mkrelpath /usr/share/grub/unicode.pf2
+ cat
+ cat
+ [ x1 = x1 ]
+ [ x != x ]
+ [ x != x ]
+ [ xen_US.UTF-8 != xC ]
+ [ -d /boot/grub/locale ]
+ /usr/sbin/grub-probe --target=device /boot/grub/locale
+ prepare_grub_to_access_device /dev/mapper/vg00-root
+ device=/dev/mapper/vg00-root
+ grep -q crypt[[:space:]]$
+ dmsetup status /dev/mapper/vg00-root
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=abstraction
+ abstraction=lvm
+ echo insmod lvm
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=partmap
+ partmap=msdos
+ echo insmod part_msdos
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs
+ fs=ext2
+ echo insmod ext2
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=drive
+ echo set root='(vg00-root)'
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs_uuid
+ fs_uuid=e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ echo search --no-floppy --fs-uuid --set 
e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ make_system_path_relative_to_its_root /boot/grub/locale
+ /usr/bin/grub-mkrelpath /boot/grub/locale
+ cat
+ [ x != x ]
+ make_timeout  5
+ [ x != x ]
+ cat
+ [ x != x ]
+ [ x != x ]
+ echo ### END /etc/grub.d/00_header ###
+ grub_file_is_not_garbage /etc/grub.d/05_debian_theme
+ test -f /etc/grub.d/05_debian_theme
+ return 0
+ test -x /etc/grub.d/05_debian_theme
+ echo
+ echo ### BEGIN /etc/grub.d/05_debian_theme ###
+ /etc/grub.d/05_debian_theme
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ datarootdir=/usr/share
+ datadir=/usr/share
+ bindir=/usr/bin
+ sbindir=/usr/sbin
+ echo grub
+ sed s,x,x,
+ pkgdatadir=/usr/share/grub
+ test x = x
+ echo grub-probe
+ sed s,x,x,
+ grub_probe=/usr/sbin/grub-probe
+ test x = x
+ echo grub-mkrelpath
+ sed s,x,x,
+ grub_mkrelpath=/usr/bin/grub-mkrelpath
+ which gettext
+
+ gettext=gettext
+ f=/usr/share/desktop-base/grub_background.sh
+ test -e /usr/share/desktop-base/grub_background.sh
+ WALLPAPER=/usr/share/images/desktop-base/moreblue-orbit-grub.png
+ COLOR_NORMAL=black/black
+ COLOR_HIGHLIGHT=magenta/black
+ use_bg=false
+ [ gfxterm = gfxterm ]
+ basename /usr/share/images/desktop-base/moreblue-orbit-grub.png
+ is_path_readable_by_grub /boot/grub/moreblue-orbit-grub.png
+ path=/boot/grub/moreblue-orbit-grub.png
+ test -e /boot/grub/moreblue-orbit-grub.png
+ return 1
+ is_path_readable_by_grub 
/usr/share/images/desktop-base/moreblue-orbit-grub.png
+ path=/usr/share/images/desktop-base/moreblue-orbit-grub.png
+ test -e /usr/share/images/desktop-base/moreblue-orbit-grub.png
+ :
+ /usr/sbin/grub-probe -t fs 
/usr/share/images/desktop-base/moreblue-orbit-grub.png
+ :
+ return 0
+ bg=/usr/share/images/desktop-base/moreblue-orbit-grub.png
+ reader=png
+ test -e /boot/grub/png.mod
+ basename /usr/share/images/desktop-base/moreblue-orbit-grub.png
+ echo Found background image: moreblue-orbit-grub.png
Found background image: moreblue-orbit-grub.png
+ use_bg=true
+ break
+ break
+ true
+ /usr/sbin/grub-probe --target=device 
/usr/share/images/desktop-base/moreblue-orbit-grub.png
+ prepare_grub_to_access_device /dev/mapper/vg00-root
+ device=/dev/mapper/vg00-root
+ dmsetup status /dev/mapper/vg00-root
+ grep -q crypt[[:space:]]$
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=abstraction
+ abstraction=lvm
+ echo insmod lvm
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=partmap
+ partmap=msdos
+ echo insmod part_msdos
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs
+ fs=ext2
+ echo insmod ext2
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=drive
+ echo set root='(vg00-root)'
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs_uuid
+ fs_uuid=e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ echo search --no-floppy --fs-uuid --set 
e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ make_system_path_relative_to_its_root 
/usr/share/images/desktop-base/moreblue-orbit-grub.png
+ /usr/bin/grub-mkrelpath 
/usr/share/images/desktop-base/moreblue-orbit-grub.png
+ cat
+ true
+ set_blue_theme
+ cat
+ sed -e s/^/  /g
+ echo fi
+ echo ### END /etc/grub.d/05_debian_theme ###
+ grub_file_is_not_garbage /etc/grub.d/20_linux_xen
+ test -f /etc/grub.d/20_linux_xen
+ return 0
+ test -x /etc/grub.d/20_linux_xen
+ echo
+ echo ### BEGIN /etc/grub.d/20_linux_xen ###
+ /etc/grub.d/20_linux_xen
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ datarootdir=/usr/share
+ datadir=/usr/share
+ bindir=/usr/bin
+ sbindir=/usr/sbin
+ echo grub
+ sed s,x,x,
+ pkgdatadir=/usr/share/grub
+ test x = x
+ echo grub-probe
+ sed s,x,x,
+ grub_probe=/usr/sbin/grub-probe
+ test x = x
+ echo grub-mkrelpath
+ sed s,x,x,
+ grub_mkrelpath=/usr/bin/grub-mkrelpath
+ which gettext
+
+ gettext=gettext
+ export TEXTDOMAIN=grub
+ export TEXTDOMAINDIR=/usr/share/locale
+ CLASS=--class gnu-linux --class gnu --class os --class xen
+ [ xDebian = x ]
+ OS=Debian GNU/Linux
+ echo Debian
+ tr [A-Z] [a-z]
+ cut -d  -f1
+ CLASS=--class debian --class gnu-linux --class gnu --class os --class xen
+ [ xe53b0bc4-5624-4f86-afbd-9f4799f95b6e = x ]
+ [ x = xtrue ]
+ test -e /dev/disk/by-uuid/e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ uses_abstraction /dev/mapper/vg00-root lvm
+ device=/dev/mapper/vg00-root
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=abstraction
+ abstraction=lvm
+ test xlvm = xlvm
+ return 0
+ LINUX_ROOT_DEVICE=/dev/mapper/vg00-root
+ basename /boot/vmlinuz-2.6.32-5-amd64
+ basename=vmlinuz-2.6.32-5-amd64
+ echo vmlinuz-2.6.32-5-amd64
+ sed -e s,^[^0-9]*-,,g
+ version=2.6.32-5-amd64
+ grub_file_is_not_garbage /boot/vmlinuz-2.6.32-5-amd64
+ test -f /boot/vmlinuz-2.6.32-5-amd64
+ return 0
+ grep -qx CONFIG_XEN_DOM0=y /boot/config-2.6.32-5-amd64
+ basename /boot/vmlinuz-2.6.32-5-xen-amd64
+ basename=vmlinuz-2.6.32-5-xen-amd64
+ echo vmlinuz-2.6.32-5-xen-amd64
+ sed -e s,^[^0-9]*-,,g
+ version=2.6.32-5-xen-amd64
+ grub_file_is_not_garbage /boot/vmlinuz-2.6.32-5-xen-amd64
+ test -f /boot/vmlinuz-2.6.32-5-xen-amd64
+ return 0
+ grep -qx CONFIG_XEN_DOM0=y /boot/config-2.6.32-5-xen-amd64
+ echo -n /boot/vmlinuz-2.6.32-5-xen-amd64
+ basename /vmlinu[xz]-*
+ basename=vmlinu[xz]-*
+ echo vmlinu[xz]-*
+ sed -e s,^[^0-9]*-,,g
+ version=*
+ grub_file_is_not_garbage /vmlinu[xz]-*
+ test -f /vmlinu[xz]-*
+ return 1
+ linux_list=/boot/vmlinuz-2.6.32-5-xen-amd64
+ grub_file_is_not_garbage /boot/xen-4.0-amd64.gz
+ test -f /boot/xen-4.0-amd64.gz
+ return 0
+ echo -n /boot/xen-4.0-amd64.gz
+ xen_list=/boot/xen-4.0-amd64.gz
+ prepare_boot_cache=
+ [ x/boot/xen-4.0-amd64.gz  != x ]
+ list=/boot/vmlinuz-2.6.32-5-xen-amd64
+ version_find_latest /boot/xen-4.0-amd64.gz
+ local a=
+ version_test_gt /boot/xen-4.0-amd64.gz
+ local sedexp=s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ echo /boot/xen-4.0-amd64.gz
+ sed -e s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ local a=4.0-amd64.gz
+ echo
+ sed -e s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ local b=
+ local cmp=gt
+ [ x = x ]
+ return 0
+ a=/boot/xen-4.0-amd64.gz
+ echo /boot/xen-4.0-amd64.gz
+ current_xen=/boot/xen-4.0-amd64.gz
+ basename /boot/xen-4.0-amd64.gz
+ xen_basename=xen-4.0-amd64.gz
+ dirname /boot/xen-4.0-amd64.gz
+ xen_dirname=/boot
+ make_system_path_relative_to_its_root /boot
+ /usr/bin/grub-mkrelpath /boot
+ rel_xen_dirname=/boot
+ echo xen-4.0-amd64.gz
+ sed -e s,.gz$,,g;s,^xen-,,g
+ xen_version=4.0-amd64
+ [ x/boot/vmlinuz-2.6.32-5-xen-amd64  != x ]
+ version_find_latest /boot/vmlinuz-2.6.32-5-xen-amd64
+ local a=
+ version_test_gt /boot/vmlinuz-2.6.32-5-xen-amd64
+ local sedexp=s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ echo /boot/vmlinuz-2.6.32-5-xen-amd64
+ sed -e s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ local a=2.6.32-5-xen-amd64
+ echo
+ sed -e s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ local b=
+ local cmp=gt
+ [ x = x ]
+ return 0
+ a=/boot/vmlinuz-2.6.32-5-xen-amd64
+ echo /boot/vmlinuz-2.6.32-5-xen-amd64
+ linux=/boot/vmlinuz-2.6.32-5-xen-amd64
+ echo Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
+ basename /boot/vmlinuz-2.6.32-5-xen-amd64
+ basename=vmlinuz-2.6.32-5-xen-amd64
+ dirname /boot/vmlinuz-2.6.32-5-xen-amd64
+ dirname=/boot
+ make_system_path_relative_to_its_root /boot
+ /usr/bin/grub-mkrelpath /boot
+ rel_dirname=/boot
+ echo vmlinuz-2.6.32-5-xen-amd64
+ sed -e s,^[^0-9]*-,,g
+ version=2.6.32-5-xen-amd64
+ echo 2.6.32-5-xen-amd64
+ sed -e s,\.old$,,g
+ alt_version=2.6.32-5-xen-amd64
+ linux_root_device_thisversion=/dev/mapper/vg00-root
+ initrd=
+ test -e /boot/initrd.img-2.6.32-5-xen-amd64
+ initrd=initrd.img-2.6.32-5-xen-amd64
+ break
+ test -n initrd.img-2.6.32-5-xen-amd64
+ echo Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
+ linux_entry Debian GNU/Linux 2.6.32-5-xen-amd64 4.0-amd64 false  quiet 
+ os=Debian GNU/Linux
+ version=2.6.32-5-xen-amd64
+ xen_version=4.0-amd64
+ recovery=false
+ args= quiet
+ xen_args=
+ false
+ gettext_quoted %s, with Linux %s and XEN %s
+ gettext %s, with Linux %s and XEN %s
+ sed s/'/'\\''/g
+ title=%s, with Linux %s and XEN %s
+ printf menuentry '%s, with Linux %s and XEN %s' --class debian --class 
gnu-linux --class gnu --class os --class xen {\n Debian GNU/Linux 
2.6.32-5-xen-amd64 4.0-amd64
+ save_default_entry
+ [ x = xtrue ]
+ sed -e s/^/\t/
+ [ -z  ]
+ prepare_grub_to_access_device /dev/mapper/vg00-root
+ device=/dev/mapper/vg00-root
+ sed -e s/^/\t/
+ dmsetup status /dev/mapper/vg00-root
+ grep -q crypt[[:space:]]$
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=abstraction
+ abstraction=lvm
+ echo insmod lvm
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=partmap
+ partmap=msdos
+ echo insmod part_msdos
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs
+ fs=ext2
+ echo insmod ext2
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=drive
+ echo set root='(vg00-root)'
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs_uuid
+ fs_uuid=e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ echo search --no-floppy --fs-uuid --set 
e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ prepare_boot_cache=    insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ printf %s\n     insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ gettext_quoted Loading Linux %s ...
+ gettext Loading Linux %s ...
+ sed s/'/'\\''/g
+ printf Loading Linux %s ... 2.6.32-5-xen-amd64
+ cat
+ test -n initrd.img-2.6.32-5-xen-amd64
+ gettext_quoted Loading initial ramdisk ...
+ gettext Loading initial ramdisk ...
+ sed s/'/'\\''/g
+ cat
+ cat
+ [ x != xtrue ]
+ linux_entry Debian GNU/Linux 2.6.32-5-xen-amd64 4.0-amd64 true single 
+ os=Debian GNU/Linux
+ version=2.6.32-5-xen-amd64
+ xen_version=4.0-amd64
+ recovery=true
+ args=single
+ xen_args=
+ true
+ gettext_quoted %s, with Linux %s and XEN %s (recovery mode)
+ gettext %s, with Linux %s and XEN %s (recovery mode)
+ sed s/'/'\\''/g
+ title=%s, with Linux %s and XEN %s (recovery mode)
+ printf menuentry '%s, with Linux %s and XEN %s (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os --class xen {\n 
Debian GNU/Linux 2.6.32-5-xen-amd64 4.0-amd64
+ save_default_entry
+ [ x = xtrue ]
+ sed -e s/^/\t/
+ [ -z     insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set 
e53b0bc4-5624-4f86-afbd-9f4799f95b6e ]
+ printf %s\n     insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ gettext_quoted Loading Linux %s ...
+ gettext Loading Linux %s ...
+ sed s/'/'\\''/g
+ printf Loading Linux %s ... 2.6.32-5-xen-amd64
+ cat
+ test -n initrd.img-2.6.32-5-xen-amd64
+ gettext_quoted Loading initial ramdisk ...
+ gettext Loading initial ramdisk ...
+ sed s/'/'\\''/g
+ cat
+ cat
+ echo /boot/vmlinuz-2.6.32-5-xen-amd64
+ tr   \n
+ grep -vx /boot/vmlinuz-2.6.32-5-xen-amd64
+ tr \n 
+ list=
+ [ x != x ]
+ echo /boot/xen-4.0-amd64.gz
+ tr   \n
+ grep -vx /boot/xen-4.0-amd64.gz
+ tr \n 
+ xen_list=
+ [ x != x ]
+ echo ### END /etc/grub.d/20_linux_xen ###
+ grub_file_is_not_garbage /etc/grub.d/30_os-prober
+ test -f /etc/grub.d/30_os-prober
+ return 0
+ test -x /etc/grub.d/30_os-prober
+ echo
+ echo ### BEGIN /etc/grub.d/30_os-prober ###
+ /etc/grub.d/30_os-prober
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ datarootdir=/usr/share
+ datadir=/usr/share
+ bindir=/usr/bin
+ sbindir=/usr/sbin
+ echo grub
+ sed s,x,x,
+ pkgdatadir=/usr/share/grub
+ test x = x
+ echo grub-probe
+ sed s,x,x,
+ grub_probe=/usr/sbin/grub-probe
+ test x = x
+ echo grub-mkrelpath
+ sed s,x,x,
+ grub_mkrelpath=/usr/bin/grub-mkrelpath
+ which gettext
+
+ gettext=gettext
+ [ xtrue = xtrue ]
+ exit 0
+ echo ### END /etc/grub.d/30_os-prober ###
+ grub_file_is_not_garbage /etc/grub.d/40_custom
+ test -f /etc/grub.d/40_custom
+ return 0
+ test -x /etc/grub.d/40_custom
+ echo
+ echo ### BEGIN /etc/grub.d/40_custom ###
+ /etc/grub.d/40_custom
+ echo ### END /etc/grub.d/40_custom ###
+ grub_file_is_not_garbage /etc/grub.d/41_custom
+ test -f /etc/grub.d/41_custom
+ return 0
+ test -x /etc/grub.d/41_custom
+ echo
+ echo ### BEGIN /etc/grub.d/41_custom ###
+ /etc/grub.d/41_custom
+ echo ### END /etc/grub.d/41_custom ###
+ grub_file_is_not_garbage /etc/grub.d/50_linux
+ test -f /etc/grub.d/50_linux
+ return 0
+ test -x /etc/grub.d/50_linux
+ echo
+ echo ### BEGIN /etc/grub.d/50_linux ###
+ /etc/grub.d/50_linux
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ datarootdir=/usr/share
+ datadir=/usr/share
+ bindir=/usr/bin
+ sbindir=/usr/sbin
+ echo grub
+ sed s,x,x,
+ pkgdatadir=/usr/share/grub
+ test x = x
+ echo grub-probe
+ sed s,x,x,
+ grub_probe=/usr/sbin/grub-probe
+ test x = x
+ echo grub-mkrelpath
+ sed s,x,x,
+ grub_mkrelpath=/usr/bin/grub-mkrelpath
+ which gettext
+
+ gettext=gettext
+ export TEXTDOMAIN=grub
+ export TEXTDOMAINDIR=/usr/share/locale
+ CLASS=--class gnu-linux --class gnu --class os
+ [ xDebian = x ]
+ OS=Debian GNU/Linux
+ echo Debian
+ tr [A-Z] [a-z]
+ cut -d  -f1
+ CLASS=--class debian --class gnu-linux --class gnu --class os
+ [ xe53b0bc4-5624-4f86-afbd-9f4799f95b6e = x ]
+ [ x = xtrue ]
+ test -e /dev/disk/by-uuid/e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ uses_abstraction /dev/mapper/vg00-root lvm
+ device=/dev/mapper/vg00-root
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=abstraction
+ abstraction=lvm
+ test xlvm = xlvm
+ return 0
+ LINUX_ROOT_DEVICE=/dev/mapper/vg00-root
+ grub_file_is_not_garbage /boot/vmlinuz-2.6.32-5-amd64
+ test -f /boot/vmlinuz-2.6.32-5-amd64
+ return 0
+ echo -n /boot/vmlinuz-2.6.32-5-amd64
+ grub_file_is_not_garbage /boot/vmlinuz-2.6.32-5-xen-amd64
+ test -f /boot/vmlinuz-2.6.32-5-xen-amd64
+ return 0
+ echo -n /boot/vmlinuz-2.6.32-5-xen-amd64
+ grub_file_is_not_garbage /vmlinu[zx]-*
+ test -f /vmlinu[zx]-*
+ return 1
+ list=/boot/vmlinuz-2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-xen-amd64
+ prepare_boot_cache=
+ [ x/boot/vmlinuz-2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-xen-amd64  != x ]
+ version_find_latest /boot/vmlinuz-2.6.32-5-amd64 
/boot/vmlinuz-2.6.32-5-xen-amd64
+ local a=
+ version_test_gt /boot/vmlinuz-2.6.32-5-amd64
+ local sedexp=s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ echo /boot/vmlinuz-2.6.32-5-amd64
+ sed -e s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ local a=2.6.32-5-amd64
+ echo
+ sed -e s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ local b=
+ local cmp=gt
+ [ x = x ]
+ return 0
+ a=/boot/vmlinuz-2.6.32-5-amd64
+ version_test_gt /boot/vmlinuz-2.6.32-5-xen-amd64 
/boot/vmlinuz-2.6.32-5-amd64
+ local sedexp=s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ echo /boot/vmlinuz-2.6.32-5-xen-amd64
+ sed -e s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ local a=2.6.32-5-xen-amd64
+ echo /boot/vmlinuz-2.6.32-5-amd64
+ sed -e s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ local b=2.6.32-5-amd64
+ local cmp=gt
+ [ x2.6.32-5-amd64 = x ]
+ dpkg --compare-versions 2.6.32-5-xen-amd64 gt 2.6.32-5-amd64
+ return 0
+ a=/boot/vmlinuz-2.6.32-5-xen-amd64
+ echo /boot/vmlinuz-2.6.32-5-xen-amd64
+ linux=/boot/vmlinuz-2.6.32-5-xen-amd64
+ echo Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-xen-amd64
+ basename /boot/vmlinuz-2.6.32-5-xen-amd64
+ basename=vmlinuz-2.6.32-5-xen-amd64
+ dirname /boot/vmlinuz-2.6.32-5-xen-amd64
+ dirname=/boot
+ make_system_path_relative_to_its_root /boot
+ /usr/bin/grub-mkrelpath /boot
+ rel_dirname=/boot
+ echo vmlinuz-2.6.32-5-xen-amd64
+ sed -e s,^[^0-9]*-,,g
+ version=2.6.32-5-xen-amd64
+ echo 2.6.32-5-xen-amd64
+ sed -e s,\.old$,,g
+ alt_version=2.6.32-5-xen-amd64
+ linux_root_device_thisversion=/dev/mapper/vg00-root
+ initrd=
+ test -e /boot/initrd.img-2.6.32-5-xen-amd64
+ initrd=initrd.img-2.6.32-5-xen-amd64
+ break
+ test -n initrd.img-2.6.32-5-xen-amd64
+ echo Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-xen-amd64
+ linux_entry Debian GNU/Linux 2.6.32-5-xen-amd64 false  quiet
+ os=Debian GNU/Linux
+ version=2.6.32-5-xen-amd64
+ recovery=false
+ args= quiet
+ false
+ gettext_quoted %s, with Linux %s
+ gettext %s, with Linux %s
+ sed s/'/'\\''/g
+ title=%s, with Linux %s
+ printf menuentry '%s, with Linux %s' --class debian --class gnu-linux 
--class gnu --class os {\n Debian GNU/Linux 2.6.32-5-xen-amd64
+ save_default_entry
+ [ x = xtrue ]
+ sed -e s/^/\t/
+ [ x != x ]
+ [ -z  ]
+ prepare_grub_to_access_device /dev/mapper/vg00-root
+ device=/dev/mapper/vg00-root
+ sed -e s/^/\t/
+ dmsetup status /dev/mapper/vg00-root
+ grep -q crypt[[:space:]]$
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=abstraction
+ abstraction=lvm
+ echo insmod lvm
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=partmap
+ partmap=msdos
+ echo insmod part_msdos
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs
+ fs=ext2
+ echo insmod ext2
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=drive
+ echo set root='(vg00-root)'
+ /usr/sbin/grub-probe --device /dev/mapper/vg00-root --target=fs_uuid
+ fs_uuid=e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ echo search --no-floppy --fs-uuid --set 
e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ prepare_boot_cache=    insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ printf %s\n     insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ gettext_quoted Loading Linux %s ...
+ gettext Loading Linux %s ...
+ sed s/'/'\\''/g
+ printf Loading Linux %s ... 2.6.32-5-xen-amd64
+ cat
+ test -n initrd.img-2.6.32-5-xen-amd64
+ gettext_quoted Loading initial ramdisk ...
+ gettext Loading initial ramdisk ...
+ sed s/'/'\\''/g
+ cat
+ cat
+ [ x != xtrue ]
+ linux_entry Debian GNU/Linux 2.6.32-5-xen-amd64 true single
+ os=Debian GNU/Linux
+ version=2.6.32-5-xen-amd64
+ recovery=true
+ args=single
+ true
+ gettext_quoted %s, with Linux %s (recovery mode)
+ gettext %s, with Linux %s (recovery mode)
+ sed s/'/'\\''/g
+ title=%s, with Linux %s (recovery mode)
+ printf menuentry '%s, with Linux %s (recovery mode)' --class debian 
--class gnu-linux --class gnu --class os {\n Debian GNU/Linux 
2.6.32-5-xen-amd64
+ save_default_entry
+ [ x = xtrue ]
+ sed -e s/^/\t/
+ [ x != x ]
+ [ -z     insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set 
e53b0bc4-5624-4f86-afbd-9f4799f95b6e ]
+ printf %s\n     insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ gettext_quoted Loading Linux %s ...
+ gettext Loading Linux %s ...
+ sed s/'/'\\''/g
+ printf Loading Linux %s ... 2.6.32-5-xen-amd64
+ cat
+ test -n initrd.img-2.6.32-5-xen-amd64
+ gettext_quoted Loading initial ramdisk ...
+ gettext Loading initial ramdisk ...
+ sed s/'/'\\''/g
+ cat
+ cat
+ echo /boot/vmlinuz-2.6.32-5-amd64 /boot/vmlinuz-2.6.32-5-xen-amd64
+ tr   \n
+ grep -vx /boot/vmlinuz-2.6.32-5-xen-amd64
+ tr \n 
+ list=/boot/vmlinuz-2.6.32-5-amd64
+ [ x/boot/vmlinuz-2.6.32-5-amd64  != x ]
+ version_find_latest /boot/vmlinuz-2.6.32-5-amd64
+ local a=
+ version_test_gt /boot/vmlinuz-2.6.32-5-amd64
+ local sedexp=s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ echo /boot/vmlinuz-2.6.32-5-amd64
+ sed -e s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ local a=2.6.32-5-amd64
+ echo
+ sed -e s/[^-]*-//;s/[._-]\(pre\|rc\|test\|git\|old\|trunk\)/~\1/g
+ local b=
+ local cmp=gt
+ [ x = x ]
+ return 0
+ a=/boot/vmlinuz-2.6.32-5-amd64
+ echo /boot/vmlinuz-2.6.32-5-amd64
+ linux=/boot/vmlinuz-2.6.32-5-amd64
+ echo Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
+ basename /boot/vmlinuz-2.6.32-5-amd64
+ basename=vmlinuz-2.6.32-5-amd64
+ dirname /boot/vmlinuz-2.6.32-5-amd64
+ dirname=/boot
+ make_system_path_relative_to_its_root /boot
+ /usr/bin/grub-mkrelpath /boot
+ rel_dirname=/boot
+ echo vmlinuz-2.6.32-5-amd64
+ sed -e s,^[^0-9]*-,,g
+ version=2.6.32-5-amd64
+ echo 2.6.32-5-amd64
+ sed -e s,\.old$,,g
+ alt_version=2.6.32-5-amd64
+ linux_root_device_thisversion=/dev/mapper/vg00-root
+ initrd=
+ test -e /boot/initrd.img-2.6.32-5-amd64
+ initrd=initrd.img-2.6.32-5-amd64
+ break
+ test -n initrd.img-2.6.32-5-amd64
+ echo Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
+ linux_entry Debian GNU/Linux 2.6.32-5-amd64 false  quiet
+ os=Debian GNU/Linux
+ version=2.6.32-5-amd64
+ recovery=false
+ args= quiet
+ false
+ gettext_quoted %s, with Linux %s
+ gettext %s, with Linux %s
+ sed s/'/'\\''/g
+ title=%s, with Linux %s
+ printf menuentry '%s, with Linux %s' --class debian --class gnu-linux 
--class gnu --class os {\n Debian GNU/Linux 2.6.32-5-amd64
+ save_default_entry
+ [ x = xtrue ]
+ sed -e s/^/\t/
+ [ x != x ]
+ [ -z     insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set 
e53b0bc4-5624-4f86-afbd-9f4799f95b6e ]
+ printf %s\n     insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ gettext_quoted Loading Linux %s ...
+ gettext Loading Linux %s ...
+ sed s/'/'\\''/g
+ printf Loading Linux %s ... 2.6.32-5-amd64
+ cat
+ test -n initrd.img-2.6.32-5-amd64
+ gettext_quoted Loading initial ramdisk ...
+ gettext Loading initial ramdisk ...
+ sed s/'/'\\''/g
+ cat
+ cat
+ [ x != xtrue ]
+ linux_entry Debian GNU/Linux 2.6.32-5-amd64 true single
+ os=Debian GNU/Linux
+ version=2.6.32-5-amd64
+ recovery=true
+ args=single
+ true
+ gettext_quoted %s, with Linux %s (recovery mode)
+ gettext %s, with Linux %s (recovery mode)
+ sed s/'/'\\''/g
+ title=%s, with Linux %s (recovery mode)
+ printf menuentry '%s, with Linux %s (recovery mode)' --class debian 
--class gnu-linux --class gnu --class os {\n Debian GNU/Linux 2.6.32-5-amd64
+ save_default_entry
+ [ x = xtrue ]
+ sed -e s/^/\t/
+ [ x != x ]
+ [ -z     insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set 
e53b0bc4-5624-4f86-afbd-9f4799f95b6e ]
+ printf %s\n     insmod lvm
    insmod part_msdos
    insmod ext2
    set root='(vg00-root)'
    search --no-floppy --fs-uuid --set e53b0bc4-5624-4f86-afbd-9f4799f95b6e
+ gettext_quoted Loading Linux %s ...
+ gettext Loading Linux %s ...
+ sed s/'/'\\''/g
+ printf Loading Linux %s ... 2.6.32-5-amd64
+ cat
+ test -n initrd.img-2.6.32-5-amd64
+ gettext_quoted Loading initial ramdisk ...
+ gettext Loading initial ramdisk ...
+ sed s/'/'\\''/g
+ cat
+ cat
+ echo /boot/vmlinuz-2.6.32-5-amd64
+ tr   \n
+ grep -vx /boot/vmlinuz-2.6.32-5-amd64
+ tr \n 
+ list=
+ [ x != x ]
+ echo ### END /etc/grub.d/50_linux ###
+ grub_file_is_not_garbage /etc/grub.d/README
+ test -f /etc/grub.d/README
+ return 0
+ test -x /etc/grub.d/README
+ [ x/boot/grub/grub.cfg != x ]
+ grep -q ^password  /boot/grub/grub.cfg.new
+ chmod 444 /boot/grub/grub.cfg.new
+ test x/boot/grub/grub.cfg != x
+ mv -f /boot/grub/grub.cfg.new /boot/grub/grub.cfg
+ echo done
done







More information about the Pkg-grub-devel mailing list