Changeset 1716


Ignore:
Timestamp:
Oct 28, 2007, 2:03:30 AM (12 years ago)
Author:
bruno
Message:

Adds udev support (mandatory for newest distributions to avoid remapping of devices in a different way as on the original system)

Location:
branches/2.2.5/mindi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi/deplist.txt

    r1623 r1716  
    3939loadkeys
    4040mount
     41udevd
    4142devfsd burnBX burnK6 burnK7 burnMMX burnP5 burnP6 lucifer tiobench tiotest bonnie++ mprime ide-smart
    4243
  • branches/2.2.5/mindi/mindi

    r1715 r1716  
    27642764    mkdir -p tmp
    27652765    [ -e "/dev/.devfsd" ] && echo "/dev/.devfsd found" > tmp/USE-DEVFS
     2766    ps auxww | grep -v grep | grep -q /udevd
     2767    if [ $? -eq 0 ]; then
     2768        echo "udev device manager found" > tmp/USE-UDEV
     2769        cp --parents -Rdf /etc/udev . 2> /dev/null
     2770        cp --parents -Rdf /lib/udev . 2> /dev/null
     2771    fi
    27662772    for w in cdrom floppy groovy-stuff ; do
    27672773        mkdir -p mnt/$w
  • branches/2.2.5/mindi/rootfs/sbin/init

    r1698 r1716  
    250250    fi
    251251    fi
     252}
     253
     254RunUdevd() {
     255    # Inspiration from LFS docs
     256    mkdir -p /lib/udev/devices &&
     257    mknod -m0666 /lib/udev/devices/null c 1 3
     258    ln -sf /proc/self/fd /lib/udev/devices/fd &&
     259    ln -sf /proc/self/fd/0 /lib/udev/devices/stdin &&
     260    ln -sf /proc/self/fd/1 /lib/udev/devices/stdout &&
     261    ln -sf /proc/self/fd/2 /lib/udev/devices/stderr &&
     262    ln -sf /proc/kcore /lib/udev/devices/core &&
     263    mkdir -p /lib/udev/devices/{pts,shm}
     264    cp -R /lib/udev/devices/* /dev
     265    udevd --daemon
    252266}
    253267
     
    448462export PATH GROOVY USER LOGFILE
    449463
    450 echo "Welcome to init (from mindi ${MINDI_VER}-r${MINDI_REV}"
     464echo "Welcome to init (from mindi ${MINDI_VER}-r${MINDI_REV})"
    451465
    452466mount -o remount rw /
     
    463477echo 0 > /proc/sys/kernel/exec-shield 2>> /dev/null
    464478
     479if [ -e "/tmp/USE-UDEV" ] ; then
     480    RunUdevfsd
     481fi
     482echo "Starting potential Raid/LVMs ..."
    465483ExtractDevTarballs
    466484LaunchTerminals
Note: See TracChangeset for help on using the changeset viewer.