Changeset 1716 in MondoRescue for branches/2.2.5/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Oct 28, 2007, 2:03:30 AM (17 years ago)
Author:
Bruno Cornec
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.