Changeset 223 for branches/2.05


Ignore:
Timestamp:
Dec 15, 2005, 10:54:12 AM (14 years ago)
Author:
bcornec
Message:

Fix a bug in NFS/PXE restore where the nfs-server-path wasn't used ((Sébastien Aperghis-Tramoni)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.05/mindi/rootfs/sbin/init

    r220 r223  
    638638            done
    639639        fi
    640         LogIt "Mounting NFS image $imgname-1.iso on /mnt/cdrom in loopback"
    641         losetup /dev/loop7 /tmp/isodir/$imgname-1.iso
     640        dirimg=`grep nfs-server-path /tmp/mondo-restore.cfg | cut -d' ' -f2-`
     641        if [ "$dirimg" = "" ]; then
     642            imgname="/"
     643        fi
     644        LogIt "Mounting NFS image $imgname-1.iso in $dirimg on /mnt/cdrom in loopback"
     645        losetup /dev/loop7 /tmp/isodir/$dirimg/$imgname-1.iso
    642646        mount -t iso9660 /dev/loop7 /mnt/cdrom
    643647        # Simulate a local CD
Note: See TracChangeset for help on using the changeset viewer.