Changeset 1001 in MondoRescue for branches


Ignore:
Timestamp:
Dec 11, 2006, 12:10:10 PM (17 years ago)
Author:
Bruno Cornec
Message:

Fix a bug where grub.conf was a symlink. The pointer to the link was false.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/restore-scripts/mondo/stabgrub-me

    r827 r1001  
    3232        LogIt "No need for fstab search." 2
    3333#        fstab_list=/mnt/RESTORING/etc/fstab
    34     old_fstab=/mnt/RESTORING/etc/fstab
    35     old_grubconf=/mnt/RESTORING/etc/grub.conf
     34        old_fstab=/mnt/RESTORING/etc/fstab
     35        old_grubconf=/mnt/RESTORING/etc/grub.conf
    3636        # For some distros, e.g. Debian, /etc/grub.conf is a symbolic link
    37     # which we need to resolve and prepend with /mnt/RESTORING because
    38     # we run this outside the chroot.
    39     if [ -L "$old_grubconf" ] ; then
    40         old_grubconf=/mnt/RESTORING`readlink "$old_grubconf"`
    41     fi 
    42     return 0
     37        # which we need to resolve and prepend with /mnt/RESTORING because
     38        # we run this outside the chroot.
     39        if [ -L "$old_grubconf" ] ; then
     40            old_grubconf=/mnt/RESTORING/etc/`readlink "$old_grubconf"`
     41        fi 
     42        return 0
    4343    elif [ -f "/mnt/cdrom/archives/CUCKOO" ] ; then
    4444        LogIt "Because I'm cuckoo, I'll stop searching." 2
Note: See TracChangeset for help on using the changeset viewer.