Bug#538743: grub2: update-grub does not backup grub.cfg before changes

blaz bdl at fwr.on.ca
Sun Jul 26 18:31:11 UTC 2009


Package: grub2
Version: 1.96+20090709-1
Severity: minor

update-grub can leave grub.cfg severly mangled if any error occurs. It would be nice if it backed it first. I couldn't find any when it happened to me.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/root / ext4 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
/dev/sdb1 /home/blaz/media xfs rw,relatime,attr2,noquota 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/sda
(hd1)	/dev/sdb
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,5)
search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
if loadfont /usr/share/grub/ascii.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,5)
search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
insmod png
if background_image /boot/grub/moreblue-orbit-grub.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30.2" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.30.2 root=/dev/sda5 ro  quiet
}
menuentry "Debian GNU/Linux, Linux 2.6.30.2 (recovery mode)" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.30.2 root=/dev/sda5 ro single 
}
menuentry "Debian GNU/Linux, Linux 2.6.30-1-686" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.30-1-686 root=/dev/sda5 ro  quiet
	initrd	/boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, Linux 2.6.30-1-686 (recovery mode)" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.30-1-686 root=/dev/sda5 ro single 
	initrd	/boot/initrd.img-2.6.30-1-686
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-686" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.26-2-686 root=/dev/sda5 ro  quiet
	initrd	/boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, Linux 2.6.26-2-686 (recovery mode)" {
	set root=(hd0,5)
	search --no-floppy --fs-uuid --set 02285f57-35d3-4c62-8baa-0c299b88bcf9
	linux	/boot/vmlinuz-2.6.26-2-686 root=/dev/sda5 ro single 
	initrd	/boot/initrd.img-2.6.26-2-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30.2 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub2 depends on:
ii  grub-pc                  1.96+20090709-1 GRand Unified Bootloader, version 

grub2 recommends no packages.

grub2 suggests no packages.

-- no debconf information





More information about the Pkg-grub-devel mailing list