Changeset 2253 in MondoRescue for branches/2.2.9/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Jul 5, 2009, 2:42:33 AM (15 years ago)
Author:
Bruno Cornec
Message:

r3165@localhost: bruno | 2009-07-03 17:08:03 +0200

  • Only mount /mnt/RESTORING if needed for script execution
  • Copy the NFS script under /tmp as it's unmounted before we can use it
File:
1 edited

Legend:

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

    r2252 r2253  
    835835        echo $i | grep -qi script= && script=`echo $i | cut -d= -f2`
    836836    done
     837    # start-nfs moved it under /tmp as the NFS share is already unmounted
     838    if [ "`echo $script | grep -E '^/tmp/isodir'`" ]; then
     839        script=`echo $script | sed 's|^/tmp/isodir|/tmp|'`
     840    fi
    837841    if [ -x $script ]; then
    838842        echo "Executing final script $script"
    839843        LogIt "Executing final script $script"
    840         mount-me
     844        if [ "`echo $script | grep -E '^/mnt/RESTORING'`" ]; then
     845            mount-me
     846        fi
    841847        $script
    842         unmount-me
     848        if [ "`echo $script | grep -E '^/mnt/RESTORING'`" ]; then
     849            unmount-me
     850        fi
    843851    fi
    844852fi
Note: See TracChangeset for help on using the changeset viewer.