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

2007-05-29 Thread Robert Millan
On Sun, May 20, 2007 at 11:46:55PM +0200, Adeodato Simó wrote:
 * 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:

Oops.  I didn't think of the possibility of grub legacy being installed :-)

I suggest:

if test -e /boot/grub/grub.cfg ; then
  update-grub
fi

-- 
Robert Millan

My spam trap is [EMAIL PROTECTED]  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2007-05-22 Thread Yann Dirson
On Sun, May 20, 2007 at 11:46:55PM +0200, Adeodato Simó wrote:
 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:

Oh, then testing for the existence of /boot/grub/ seems to be an
accurate additional test.  Thanks for the info.

Best regards,
-- 
Yann.




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

2007-05-20 Thread Adeodato Simó
Package: memtest86+
Version: 1.70-2
Severity: serious

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.

Cheers,

-- 
Adeodato Simó dato at net.com.org.es
Debian Developer  adeodato at debian.org
 
Listening to: Elton John - Honky cat



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



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

2007-05-20 Thread Yann Dirson
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.

Best regards,
-- 
Yann



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

2007-05-20 Thread Adeodato Simó
* 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”



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]