Changeset 827 in MondoRescue for branches


Ignore:
Timestamp:
Sep 24, 2006, 3:53:40 AM (18 years ago)
Author:
andree
Message:

Check for grub.conf being a symbolic link which is the case on e.g.
Debian and resolve accordingly in stabgrub-me to avoid GRUB installation
error if mountlist was changed. Requires readlink which should be in our
included busybox as of revision 822
http://www.mondorescue.org/cgi-bin/trac.cgi/changeset/822.

File:
1 edited

Legend:

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

    r567 r827  
    3434    old_fstab=/mnt/RESTORING/etc/fstab
    3535    old_grubconf=/mnt/RESTORING/etc/grub.conf
     36        # 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 
    3642    return 0
    3743    elif [ -f "/mnt/cdrom/archives/CUCKOO" ] ; then
Note: See TracChangeset for help on using the changeset viewer.