Bug#425221: memtest86+: fails to configure if grub is installed but not used

Adeodato Simó dato at net.com.org.es
Sun May 20 21:46:55 UTC 2007


* Yann Dirson [Sun, 20 May 2007 22:51:47 +0200]:

> On Sun, May 20, 2007 at 11:16:38AM +0200, Adeodato Simó wrote:
> > Don't ask me why, but the grub package is installed on my system, but
> > not used to boot. This makes the `upgrade-grub` call in line 21 of
> > memtest86+.postinst fail when configuring, leaving the package in an
> > unconfigured state. Maybe you want to add a '|| true' bit there.

> Could you paste the message ?  That could be helpful to the grub
> people to tell what's happenning.

What happens is that grub is installed, but is not used as a boot
loader, hence no /boot/grub directory exists. Here is the output:

% sudo sh -x /var/lib/dpkg/info/memtest86+.postinst configure 1.70-2
+ set -e
+ '[' -x /sbin/lilo ']'
+ '[' -r /etc/lilo.conf ']'
+ '[' '' '!=' noninteractive ']'
+ grep 'image.*=.*/boot/memtest86+.bin' /etc/lilo.conf
+ echo 'You seem to have an entry for memtest86+ in /etc/lilo.conf.'
You seem to have an entry for memtest86+ in /etc/lilo.conf.
+ printf 'Run lilo now [y/N]? '
Run lilo now [y/N]? + read c
n
+ '[' n = y ']'
+ '[' n = Y ']'
+ which update-grub
+ update-grub
Searching for GRUB installation directory ...
No GRUB directory found.
 To create a template run 'mkdir /boot/grub' first.
 To install grub, install it manually or try the 'grub-install' command.
 ### Warning, grub-install is used to change your MBR. ###

Cheers,

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
- In Italy, for 30 years under the Borgias they had warfare, terror,
  murder, bloodshed, but they produced Michelangelo, Leonardo da Vinci,
  and the Renaissance. In Switzerland they had brotherly love - they had
  500 years of democracy and peace, and what did that produce? The
  cuckoo clock.
                -- Harry Lime in “The Third Man”




More information about the Pkg-grub-devel mailing list