Bug#480254: grub-pc: post-install fails with grub linux cmdline (leaning toothpics)

Robert Millan rmh at aybabtu.com
Mon May 12 15:11:12 UTC 2008


forcemerge 479279 480254
thanks

This is a duplicate of #479279 which was supposedly fixed in SVN (but not
yet in sid).

Please confirm if you can.

On Fri, May 09, 2008 at 03:17:36PM +1000, Jason Thomas wrote:
> Package: grub-pc
> Version: 1.96+20080429-1
> Severity: normal
> 
> 
> When I set the grub linux cmd line through debconf the post.install
> script fails with the following error. The install script fails to pull
> my old linux cmd line from menu.lst, so I typed it in.
> 
> 
> my linxu cmd line is "root=/dev/hdc1 ro"
> 
> 
> sed: -e expression #1, char 40: unknown option to `s'
> 
> 
> + db_get grub-pc/linux_cmdline
> + _db_cmd 'GET grub-pc/linux_cmdline'
> + IFS=' '
> + printf '%s\n' 'GET grub-pc/linux_cmdline'
> + IFS='
> '
> + read -r _db_internal_line
> + RET='root=/dev/hdc1 ro'
> + case ${_db_internal_line%%[   ]*} in
> + return 0
> + '[' 'root=/dev/hdc1 ro' == fillme ']'
> + '[' 'root=/dev/hdc1 ro' '!=' '' ']'
> + sed -i /etc/default/grub -e
> 's/^\(GRUB_CMDLINE_LINUX\)=.*/\1="root=/dev/hdc1 ro"/g'
> sed: -e expression #1, char 40: unknown option to `s'
> + db_set grub-pc/linux_cmdline ''
> + _db_cmd 'SET grub-pc/linux_cmdline' ''
> + IFS=' '
> + printf '%s\n' 'SET grub-pc/linux_cmdline '
> + IFS='
> 
> 
> 
> -- Package-specific info:
> 
> *********************** BEGIN /proc/mounts
> /dev/hdc1 / reiserfs rw 0 0
> /dev/hdc1 /dev/.static/dev reiserfs rw 0 0
> *********************** END /proc/mounts
> 
> *********************** BEGIN /boot/grub/device.map
> (hd0)	/dev/hda
> (hd1)	/dev/hdc
> *********************** END /boot/grub/device.map
> 
> *********************** BEGIN /boot/grub/grub.cfg
> #
> # DO NOT EDIT THIS FILE
> #
> # It is automatically generated by /usr/sbin/update-grub 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=(hd1,1)
> if font (hd1,1)/usr/share/grub/unicode.pff ; then
>   set gfxmode=640x480
>   insmod gfxterm
>   insmod vbe
>   terminal gfxterm
> fi
> ### END /etc/grub.d/00_header ###
> 
> ### BEGIN /etc/grub.d/05_debian_theme ###
> insmod png
> if background_image (hd1,1)/usr/share/images/desktop-base/debian-blueish-wallpaper-640x480.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_hurd ###
> ### END /etc/grub.d/10_hurd ###
> 
> ### BEGIN /etc/grub.d/10_linux ###
> menuentry "Debian GNU/Linux, linux 2.6.25-1-686" {
> 	linux	(hd1,1)/boot/vmlinuz-2.6.25-1-686 root=/dev/hdc1 ro 
> 	initrd	(hd1,1)/boot/initrd.img-2.6.25-1-686
> }
> menuentry "Debian GNU/Linux, linux 2.6.25-1-686 (single-user mode)" {
> 	linux	(hd1,1)/boot/vmlinuz-2.6.25-1-686 root=/dev/hdc1 ro single 
> 	initrd	(hd1,1)/boot/initrd.img-2.6.25-1-686
> }
> menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
> 	linux	(hd1,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/hdc1 ro 
> 	initrd	(hd1,1)/boot/initrd.img-2.6.24-1-686
> }
> menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
> 	linux	(hd1,1)/boot/vmlinuz-2.6.24-1-686 root=/dev/hdc1 ro single 
> 	initrd	(hd1,1)/boot/initrd.img-2.6.24-1-686
> }
> ### END /etc/grub.d/10_linux ###
> 
> ### BEGIN /etc/grub.d/30_os-prober ###
> ### END /etc/grub.d/30_os-prober ###
> *********************** END /boot/grub/grub.cfg
> 
> -- System Information:
> Debian Release: lenny/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
> Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
> Shell: /bin/sh linked to /bin/bash
> 
> Versions of packages grub-pc depends on:
> ii  debconf [debconf-2.0]    1.5.21          Debian configuration management sy
> ii  grub-common              1.96+20080429-1 GRand Unified Bootloader, version 
> ii  libc6                    2.7-10          GNU C Library: Shared libraries
> ii  liblzo1                  1.08-3          data compression library (old vers
> ii  libncurses5              5.6+20080503-1  Shared libraries for terminal hand
> 
> grub-pc recommends no packages.
> 
> -- debconf information:
> * grub-pc/linux_cmdline:
> * grub-pc/chainload_from_menu.lst: true
> 
> 
> 
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
> 

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)





More information about the Pkg-grub-devel mailing list