Changeset 808 in MondoRescue for trunk/mindi


Ignore:
Timestamp:
Sep 22, 2006, 11:12:37 PM (19 years ago)
Author:
Bruno Cornec
Message:

merge -r793:807 $SVN_M/branches/stable
src => common for the moment it's easier to manage merges

Location:
trunk/mindi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/README.pxe

    r687 r808  
    1111label mondo
    1212        kernel vmlinuz-mondo
    13         append initrd=initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=36864 rw root=/dev/ram iso_mode acpi=off apm=off devfs=nomount exec-shield=0 pxe [prefix="machine"] [ipconf=(ipdev:ipadr:netmask:broadcast:gateway|ipdev:dhcp)] [nfsmount=server:mountpoint] [ping=#] ...
     13        append initrd=initrd-mondo load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=36864 rw root=/dev/ram iso_mode acpi=off apm=off devfs=nomount exec-shield=0 pxe [prefix=machine] [ipconf=(ipdev:ipadr:netmask:broadcast:gateway|ipdev:dhcp)] [nfsmount=server:mountpoint] [ping=#] ...
    1414
    1515ipdev is the device name (e.g. eth2)
  • trunk/mindi/distributions/debian/rules

    r588 r808  
    2626    dh_installdirs
    2727    # Build the installation tree:
    28     ( export PREFIX=$(CURDIR)/debian/$(PACKAGE_NAME)/usr && export CONFDIR=$(CURDIR)/debian/$(PACKAGE_NAME)/etc && ./install.sh )
     28    ( export RPMBUILDMINDI=true && export PREFIX=$(CURDIR)/debian/$(PACKAGE_NAME)/usr && export CONFDIR=$(CURDIR)/debian/$(PACKAGE_NAME)/etc && ./install.sh )
    2929
    3030# Build architecture-independent files here.
  • trunk/mindi/mindi

    r794 r808  
    534534    local my_partitions i
    535535    echo "MINDI_VERSION is $MINDI_VERSION" >> $LOGFILE
     536    echo "End date : `date`" >> $LOGFILE
    536537    if [ "$1" = "" ] ; then
    537     LogIt "Fatal error\n"
    538     else
    539     LogIt "Fatal error. $1\n"
     538        LogIt "Fatal error\n"
     539    else
     540        LogIt "Fatal error. $1\n"
    540541    fi
    541542    sync
     
    14221423            actual_dev=""
    14231424   
    1424             # 1st try : blkid, the good way for all LABEL
     1425            # 1st try : blkid, the good way for all LABEL except swap
    14251426            if [ -x "/sbin/blkid" ]; then
    14261427                actual_dev=`/sbin/blkid | /bin/grep "$redhat_label" | grep LABEL= | /bin/cut -d':' -f1`
     
    30223023echo "mindi called with the following arguments:" >> $LOGFILE
    30233024echo "$@" >> $LOGFILE
     3025echo "Start date : `date`" >> $LOGFILE
    30243026
    30253027if [ -e "/etc/conf.modules" ] && [ ! -e "/etc/modules.conf" ] ; then
     
    34833485done
    34843486echo "Mindi is exiting" >> $LOGFILE
     3487echo "End date : `date`" >> $LOGFILE
    34853488exit 0
  • trunk/mindi/rootfs/sbin/start-nfs

    r764 r808  
    33# $Id$
    44#
    5 # This script set up the network + NFS environement if needed.
     5# This script sets up the network + NFS environment if needed.
    66#
    77
     
    1717ipgateway=`grep nfs-client-defgw /tmp/mondo-restore.cfg | cut -d' ' -f2-`
    1818ipconf=""
    19 nfsmount=`grep nfs-server-mount /tmp/mondo-restore.cfg | cut -d' ' -f2-`
    20 imgname=`grep iso-prefix /tmp/mondo-restore.cfg | cut -d' ' -f2-`
     19export nfsmount=`grep nfs-server-mount /tmp/mondo-restore.cfg | cut -d' ' -f2-`
     20export imgname=`grep iso-prefix /tmp/mondo-restore.cfg | cut -d' ' -f2-`
    2121if [ "$imgname" = "" ]; then
    22     imgname="mondorescue"
     22    export imgname="mondorescue"
    2323fi
    24 dirimg=`grep nfs-server-path /tmp/mondo-restore.cfg | cut -d' ' -f2-`
     24export dirimg=`grep nfs-server-path /tmp/mondo-restore.cfg | cut -d' ' -f2-`
    2525if [ "$dirimg" = "" ]; then
    26     dirimg="/"
     26    export dirimg="/"
    2727fi
    2828
     
    3131    echo $i | grep -qi ping= && ipcount=`echo $i | cut -d= -f2`
    3232    echo $i | grep -qi ipconf= && ipconf=`echo $i | cut -d= -f2`
    33     echo $i | grep -qi nfsmount= && nfsmount=`echo $i | cut -d= -f2`
    34     echo $i | grep -qi prefix= && imgname=`echo $i | cut -d= -f2`
     33    echo $i | grep -qi nfsmount= && export nfsmount=`echo $i | cut -d= -f2`
     34    echo $i | grep -qi prefix= && export imgname=`echo $i | cut -d= -f2`
    3535done
    3636
     
    7373mount -t nfs -o nolock $nfsmount /tmp/isodir
    7474
    75 LogIt "Mounting NFS image $imgname-1.iso in $dirimg on /mnt/cdrom in loopback"
    76 losetup /dev/loop7 /tmp/isodir/$dirimg/$imgname-1.iso
     75LogIt "Mounting NFS image ${imgname}-1.iso in $dirimg on /mnt/cdrom in loopback"
     76losetup /dev/loop7 /tmp/isodir/$dirimg/${imgname}-1.iso
    7777mount -o ro -t iso9660 /dev/loop7 /mnt/cdrom
Note: See TracChangeset for help on using the changeset viewer.