﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
159	stabgrub-me script needs mod for Ubuntu (/etc/grub.conf is a link to a full path name)	Scott Cummings	Bruno Cornec	"In Ubuntu 6.10 - 

$ ls -l /etc/grub.conf 
lrwxrwxrwx 1 root root 19 2007-04-13 15:12 /etc/grub.conf -> /boot/grub/menu.lst

I don't know how this patch will play with other distributions, but for Ubuntu it seems to work better this way - 

{{{
*** stabgrub-me.orig    2007-04-15 11:07:28.000000000 -0500
--- stabgrub-me.new     2007-04-15 11:13:23.000000000 -0500
***************
*** 37,43 ****
                # which we need to resolve and prepend with /mnt/RESTORING because
                # we run this outside the chroot.
                if [ -L ""$old_grubconf"" ] ; then
!               old_grubconf=/mnt/RESTORING/etc/`readlink ""$old_grubconf""`
                fi
                return 0
      elif [ -f ""/mnt/cdrom/archives/CUCKOO"" ] ; then
--- 37,43 ----
                # which we need to resolve and prepend with /mnt/RESTORING because
                # we run this outside the chroot.
                if [ -L ""$old_grubconf"" ] ; then
!               old_grubconf=/mnt/RESTORING`readlink ""$old_grubconf""`
                fi
                return 0
      elif [ -f ""/mnt/cdrom/archives/CUCKOO"" ] ; then
}}}

Related problem is -

When mondorestore does 'vi /mnt/RESTORING/etc/grub.conf', busybox? doesn't follow link, so get empty file.  (should I create a separate ticket for this?)
"	defect	closed	normal	2.2.4	mondo	2.2.2	normal	fixed		
