Opened 10 years ago

Closed 9 years ago

#328 closed defect (fixed)

on SLES grub reports no error even when it doesn't work correctly

Reported by: bruno Owned by: bruno
Priority: normal Milestone: 2.2.9
Component: mondo Version: 2.2.8
Severity: normal Keywords:
Cc:

Description

As per that log file:

> [Main] mondo-rstr-tools.c->run_grub#1562: command = grub-MR /dev/cciss/c0d0p1 /tmp/mountlist.txt
> Running GRUB...
>   [Main] mondo-rstr-tools.c->run_grub#1613: mondo-rstr-tools.c, run_grub, 1613: grub-MR /dev/cciss/c0d0p1 /tmp/mountlist.txt
> Now I'll use grub-install
> Installation finished. No error reported.
> This is the contents of the device map /boot/grub/device.map.
> Check if this is correct or not. If any of the lines is incorrect,
> fix it and re-run the script `grub-install'.
>
> (hd0) /dev/cciss/c0d0
> grub-install returned 0
> running: grub-MR /dev/cciss/c0d0p1 /tmp/mountlist.txt > //mondo.tmp.C68NrD/mondo-run-prog-thing.tmp 2> //mondo.tmp.C68NrD/mondo-run-prog-thing.err
> --------------------------------start of output-----------------------------
> --------------------------------end of output------------------------------
> ...ran just fine. :-)
> Done.
> Your boot loader ran OK
> [Main] mondorestore.c->nuke_mode#843: Great! Boot loader was installed. No need for msg at end.

We should change the way grub conf file is done for those cases.

Change History (3)

comment:1 Changed 10 years ago by bruno

  • Status changed from new to assigned

Feedback from mondo's ML:

I have added at the end of post-init following code :
 mount /dev/sda2 /mnt
 chroot /mnt grub << END
 device (hd0) /dev/sda
 root (hd0,1)
 setup (hd0)
 quit
 END
 cd /
 unount /dev/sda2
Now, it works.  After restoring, it boots.

comment:2 Changed 10 years ago by bruno

The latest modifications made for 2.2.9 (up to rev [2185]) may now allow the call of the right scripts (with grub-MR) and have fixes for cciss support, so it could be worth to re-make tests with the beta of 2.2.9 to see if that solves the issue mentioned here.

comment:3 Changed 9 years ago by bruno

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.