+ transform=s,x,x, + prefix=/usr + exec_prefix=/usr + sbindir=/usr/sbin + libdir=/usr/lib + sysconfdir=/etc ++ echo /boot/grub ++ sed s,x,x, + grub_prefix=/boot/grub + grub_cfg=/boot/grub/grub.cfg + update_grub_dir=/etc/grub.d + platform=pc ++ echo grub-mkdevicemap ++ sed s,x,x, + grub_mkdevicemap=/usr/sbin/grub-mkdevicemap ++ echo grub-probe ++ sed s,x,x, + grub_probe=/usr/sbin/grub-probe + . /usr/lib/grub/update-grub_lib ++ transform=s,x,x, ++ prefix=/usr ++ exec_prefix=/usr ++ datadir=/usr/share ++ sbindir=/usr/sbin +++ echo grub +++ sed s,x,x, ++ pkgdatadir=/usr/share/grub +++ echo grub-probe +++ sed s,x,x, ++ grub_probe=/usr/sbin/grub-probe + '[' x0 = x ']' + '[' 0 '!=' 0 ']' + '[' '' = -y ']' + 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 + : ++ grub-probe --target=device / grub-probe: error: Cannot get the real path of `/dev/hda' + GRUB_DEVICE= ++ convert_root_to_uuid ++ local root ++ root= ++ convert=false +++ echo '' +++ sed 's/.*root=//;s/ .*//' ++ root= ++ case "$root" in ++ false ++ echo '' + GRUB_DEVICE= ++ grub-probe --target=fs / ++ echo unknown + GRUB_FS=unknown ++ grub-probe --target=drive / grub-probe: error: Cannot get the real path of `/dev/hda' + GRUB_DRIVE= + true ++ convert_system_path_to_grub_path /boot ++ path=/boot ++ test -e /boot ++ : ++ /usr/sbin/grub-probe -t fs /boot ++ return 1 + GRUB_DRIVE_BOOT= ++ convert_system_path_to_grub_path /boot/grub ++ path=/boot/grub ++ test -e /boot/grub ++ : ++ /usr/sbin/grub-probe -t fs /boot/grub ++ return 1 + GRUB_DRIVE_BOOT_GRUB= + test -f /etc/default/grub + . /etc/default/grub ++ GRUB_DEFAULT=0 ++ GRUB_TIMEOUT=5 +++ lsb_release -i -s ++ GRUB_DISTRIBUTOR=Ubuntu ++ GRUB_CMDLINE_LINUX='quiet splash' + case ${platform}:${GRUB_TERMINAL} in + GRUB_TERMINAL=gfxterm + case ${GRUB_TERMINAL} in ++ font_path ++ for dir in '${pkgdatadir}' /usr/share/grub /boot/grub ++ for basename in unicode unifont ascii ++ path=/usr/share/grub/unicode.pff ++ convert_system_path_to_grub_path /usr/share/grub/unicode.pff ++ path=/usr/share/grub/unicode.pff ++ test -e /usr/share/grub/unicode.pff ++ : ++ /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pff ++ return 1 ++ for basename in unicode unifont ascii ++ path=/usr/share/grub/unifont.pff ++ convert_system_path_to_grub_path /usr/share/grub/unifont.pff ++ path=/usr/share/grub/unifont.pff ++ test -e /usr/share/grub/unifont.pff ++ return 1 ++ for basename in unicode unifont ascii ++ path=/usr/share/grub/ascii.pff ++ convert_system_path_to_grub_path /usr/share/grub/ascii.pff ++ path=/usr/share/grub/ascii.pff ++ test -e /usr/share/grub/ascii.pff ++ : ++ /usr/sbin/grub-probe -t fs /usr/share/grub/ascii.pff ++ return 1 ++ for dir in '${pkgdatadir}' /usr/share/grub /boot/grub ++ for basename in unicode unifont ascii ++ path=/usr/share/grub/unicode.pff ++ convert_system_path_to_grub_path /usr/share/grub/unicode.pff ++ path=/usr/share/grub/unicode.pff ++ test -e /usr/share/grub/unicode.pff ++ : ++ /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pff ++ return 1 ++ for basename in unicode unifont ascii ++ path=/usr/share/grub/unifont.pff ++ convert_system_path_to_grub_path /usr/share/grub/unifont.pff ++ path=/usr/share/grub/unifont.pff ++ test -e /usr/share/grub/unifont.pff ++ return 1 ++ for basename in unicode unifont ascii ++ path=/usr/share/grub/ascii.pff ++ convert_system_path_to_grub_path /usr/share/grub/ascii.pff ++ path=/usr/share/grub/ascii.pff ++ test -e /usr/share/grub/ascii.pff ++ : ++ /usr/sbin/grub-probe -t fs /usr/share/grub/ascii.pff ++ return 1 ++ for dir in '${pkgdatadir}' /usr/share/grub /boot/grub ++ for basename in unicode unifont ascii ++ path=/boot/grub/unicode.pff ++ convert_system_path_to_grub_path /boot/grub/unicode.pff ++ path=/boot/grub/unicode.pff ++ test -e /boot/grub/unicode.pff ++ return 1 ++ for basename in unicode unifont ascii ++ path=/boot/grub/unifont.pff ++ convert_system_path_to_grub_path /boot/grub/unifont.pff ++ path=/boot/grub/unifont.pff ++ test -e /boot/grub/unifont.pff ++ return 1 ++ for basename in unicode unifont ascii ++ path=/boot/grub/ascii.pff ++ convert_system_path_to_grub_path /boot/grub/ascii.pff ++ path=/boot/grub/ascii.pff ++ test -e /boot/grub/ascii.pff ++ return 1 ++ return 1 + path= + GRUB_TERMINAL=console + case ${platform}:${GRUB_TERMINAL} in + export LANG=C + LANG=C + export GRUB_DEVICE GRUB_FS GRUB_DRIVE GRUB_DRIVE_BOOT GRUB_DRIVE_BOOT_GRUB GRUB_FONT_PATH GRUB_PRELOAD_MODULES + export GRUB_DEFAULT GRUB_TIMEOUT GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_TERMINAL GRUB_SERIAL_COMMAND + exec + chmod 444 /boot/grub/grub.cfg.new + echo 'Updating /boot/grub/grub.cfg ...' Updating /boot/grub/grub.cfg ... + cat + for i in '${update_grub_dir}/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/00_header + test -f /etc/grub.d/00_header + case "$1" in + return 0 + test -x /etc/grub.d/00_header + echo + echo '### BEGIN /etc/grub.d/00_header ###' + /etc/grub.d/00_header + echo '### END /etc/grub.d/00_header ###' + for i in '${update_grub_dir}/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/05_debian_theme + test -f /etc/grub.d/05_debian_theme + case "$1" in + 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 + echo '### END /etc/grub.d/05_debian_theme ###' + for i in '${update_grub_dir}/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/10_hurd + test -f /etc/grub.d/10_hurd + case "$1" in + return 0 + test -x /etc/grub.d/10_hurd + echo + echo '### BEGIN /etc/grub.d/10_hurd ###' + /etc/grub.d/10_hurd + echo '### END /etc/grub.d/10_hurd ###' + for i in '${update_grub_dir}/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/10_linux + test -f /etc/grub.d/10_linux + case "$1" in + return 0 + test -x /etc/grub.d/10_linux + echo + echo '### BEGIN /etc/grub.d/10_linux ###' + /etc/grub.d/10_linux Found linux image: /boot/vmlinuz-2.6.24-8-generic Found initrd image: /boot/initrd.img-2.6.24-8-generic Found linux image: /boot/vmlinuz-2.6.24-7-generic Found initrd image: /boot/initrd.img-2.6.24-7-generic Found linux image: /boot/vmlinuz-2.6.24-10-generic Found initrd image: /boot/initrd.img-2.6.24-10-generic + echo '### END /etc/grub.d/10_linux ###' + for i in '${update_grub_dir}/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/20_memtest86+ + test -f /etc/grub.d/20_memtest86+ + case "$1" in + return 0 + test -x /etc/grub.d/20_memtest86+ + echo + echo '### BEGIN /etc/grub.d/20_memtest86+ ###' + /etc/grub.d/20_memtest86+ Found memtest86+ image: /boot/memtest86+.bin + echo '### END /etc/grub.d/20_memtest86+ ###' + for i in '${update_grub_dir}/*' + case "$i" in + grub_file_is_not_garbage /etc/grub.d/README + test -f /etc/grub.d/README + case "$1" in + return 0 + test -x /etc/grub.d/README + mv /boot/grub/grub.cfg.new /boot/grub/grub.cfg + echo done done