Changeset 2444 in MondoRescue for branches/2.2.10/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Sep 30, 2009, 4:44:40 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • priority given to env var for tmpdir
  • fuse FS excluded from tmpdir computation
  • Improves udev timeout handling
  • fuse device is needed at restore time for sshfs
  • Avoids comment analysis in the new code handling deplist.d
  • Avoids error message if some ssh conf files do not exist
  • Improvements on sshfs/ssh management in restore mode
  • Include now all minimal requirements for sshfs
  • Fix udev support in init for Mandriva 2009.1 (udevadm settle is blocking)
  • Improve deplist.d/* files
  • adds libnss for ssh support in boot disk
  • Solve a memory management issue in DSF module (strtok => mr_strtok)
  • DSF now also supports partitions in addition to full disks
  • Adds debug in open_and_list_dir
  • Improve user management for NetFS cases
  • ssh in the restore env needs some dlopened libs (libnss_compat|files)
  • Warning emited in case of duplicate mountpoints or devices in fstab found
  • Use only the AWK veriable everywhere and not the awk command
  • Simplify GetInitrdFilesystemToUse which doesn't need to detect everything, but just know if it's initramfs (new mode) or a compressed FS ext2/3 (older mode) as initrd is anyway re-made by mindi. Should fix #353

(Backport from 2.2.9)

File:
1 edited

Legend:

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

    r2382 r2444  
    301301    fi
    302302    # Depending on udevd version it gives back the hand or not :-(
    303     if [ ! "`ps | grep udevd`" ]; then
     303    ps | grep udevd 2> /dev/null 1> /dev/null
     304    if [ $? -ne 0 ]; then
    304305        /sbin/udevd --daemon &
     306        echo "Waiting for udev to start..."
    305307        sleep 5
    306308    fi
     
    309311        /sbin/udevtrigger
    310312    fi
     313    echo "Waiting for udev to discover..."
    311314    create_dev_makedev
    312315    # Newer version use udevadm for that
    313     if [ -x /sbin/udevadm ]; then
    314             /sbin/udevadm settle --timeout=10
    315     elif [ -x /sbin/udevsettle ]; then
    316         /sbin/udevsettle
     316    if [ -x /sbin/udevsettle ]; then
     317        /sbin/udevsettle --timeout=10
     318    elif [ -x /sbin/udevadm ]; then
     319        /sbin/udevadm trigger
     320        /sbin/udevadm settle --timeout=10
    317321    fi
    318322    # It seems we need to have more static devs on some distro were
Note: See TracChangeset for help on using the changeset viewer.