Bug#412334: update-grub does fail if grub is under /boot/boot/grub

jlueters jlueters at intranet-engineering.de
Sun Feb 25 15:29:32 CET 2007


Package: grub
Version: 0.97-23
Severity: important

If grub is under /boot/boot/grub update grub fails because it does
call "grub-set-default" without parameter ""--root-directory".
grub-set-default fails because it has been provided with the wrong root directory.

Possible fix:

line 400
replace 
	grub-set-default  0

with
	if [ $grub_dir = /boot/boot/grub ]
  		then grub-set-default --root-directory=/boot 0
		else grub-set-default --root-directory=/     0
	fi


Jürgen 

-- System Information:
Debian Release: 4.0
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages grub depends on:
ii  libc6                       2.3.6.ds1-11 GNU C Library: Shared libraries
ii  libncurses5                 5.5-5        Shared libraries for terminal hand

grub recommends no packages.

-- no debconf information




More information about the Pkg-grub-devel mailing list