Changeset 1824 in MondoRescue for branches


Ignore:
Timestamp:
Nov 29, 2007, 1:12:14 AM (16 years ago)
Author:
Bruno Cornec
Message:
  • Some VMWare support improvements (however, it seems that VMWare support won't be possible anytime soon)
  • during init at restore time, copy all static evices availble for udev, as some distro implementation are not yet supported correctly for udev. Not very elegant, but should solve our current issues
Location:
branches/2.2.5
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/mindi

    r1821 r1824  
    970970    grep -vx " *#.*" $MY_FSTAB | grep -vx " *none.*" | $AWK '/^\/dev\/[imhs]d||^LABEL=\/|^UUID=/ && !/fdd|cdr|zip|floppy/ {print $1}'
    971971    [ -e "/etc/raidtab" ] && $AWK '/^ *device/ {print $2}' /etc/raidtab
    972     [ -e "/vmfs/volumes" ] && echo "/vmfs/volumes"
     972    if [ -e "/vmfs/volumes" ]; then
     973        # For VMWare ESX 3 get the device names of these volumes
     974        vdf -P | grep -E '/vmfs/volumes' | awk '{print $1}'
     975    fi
    973976    return
    974977}
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1820 r1824  
    309309        /sbin/udevsettle
    310310    fi
     311    # It seems we need to have more static devs on some distro were
     312    # udev as some other requirements to be covered later on.
     313    # So in the mean time:
     314    for d in `ls /dev.static`; do
     315        if [ ! -e /dev/$d ]; then
     316            mv /dev.static/$d /dev
     317        fi
     318    done
    311319    echo $PKLVL > /proc/sys/kernel/printk
    312320}
     
    587595mkdir /sys 2> /dev/null
    588596mount /sys/ /sys -v -t sysfs 2>> $LOGFILE
     597# For ESX 3
     598[ -d /proc/vmware ] && ! grep -q /vmfs /proc/mounts && mount -t vmfs /vmfs /vmfs
    589599rm -f /foozero
    590600
  • branches/2.2.5/mondo/src/mondorestore/mondo-prep.c

    r1741 r1824  
    22112211    } else if (strcmp(format, "minix") == 0) {
    22122212        strcpy(partcode, "81");
    2213     } else if (strcmp(format, "vmfs") == 0) {
     2213    } else if (strcmp(format, "vmfs3") == 0) {
    22142214        strcpy(partcode, "fb");
     2215    } else if (strcmp(format, "vmkcore") == 0) {
     2216        strcpy(partcode, "fc");
    22152217    } else if (strcmp(format, "raid") == 0) {
    22162218        strcpy(partcode, "fd");
Note: See TracChangeset for help on using the changeset viewer.