Changeset 71c9190 in bootscripts-standard


Ignore:
Timestamp:
May 17, 2014, 10:21:20 AM (10 years ago)
Author:
Chris Staub <chris@…>
Branches:
master
Children:
94bfdfa
Parents:
88c8bf0
Message:

Don't need /lib/udev/devices anymore

Location:
bootscripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bootscripts/Changelog

    r88c8bf0 r71c9190  
    11Chris - May 17, 2014
    22        * Removed obsolete ONHOTPLUG reference from README
     3        * Removed obsolete commands to create and populate /lib/udev/devices
    34
    45jim - June 4, 2009
  • bootscripts/Makefile

    r88c8bf0 r71c9190  
    2929        install -d -m ${DIRMODE} ${EXTDIR}/sysconfig/network-devices/services
    3030
    31 udev_device_dirs:
    32         install -d -m ${DIRMODE} ${DESTDIR}/lib/udev/devices/{pts,shm,net}
    33 
    34 udev_device_links: udev_device_dirs
    35         ln -snf /proc/self/fd ${DESTDIR}/lib/udev/devices/fd
    36         ln -snf /proc/self/fd/0 ${DESTDIR}/lib/udev/devices/stdin
    37         ln -snf /proc/self/fd/1 ${DESTDIR}/lib/udev/devices/stdout
    38         ln -snf /proc/self/fd/2 ${DESTDIR}/lib/udev/devices/stderr
    39         ln -snf /proc/kcore ${DESTDIR}/lib/udev/devices/core
    40 
    41 mknod_devices: udev_device_dirs
    42         @if [ "$$UID" = "0" ]; then \
    43                 if ! [ -e ${DESTDIR}/lib/udev/devices/null ]; then \
    44                         mknod -m 0666 ${DESTDIR}/lib/udev/devices/null c 1 3 ;\
    45                 fi \
    46         fi
    47         @if [ "$$UID" = "0" ]; then \
    48                 if ! [ -e ${DESTDIR}/lib/udev/devices/console ]; then \
    49                         mknod -m 0600 ${DESTDIR}/lib/udev/devices/console c 5 1 ;\
    50                 fi \
    51         fi
    52         @if [ "$$UID" != "0" ]; then \
    53                 if ! [ -e ${DESTDIR}/lib/udev/devices/null ]; then \
    54                         echo "You will need to issue the following command as the root user" ;\
    55                         echo "" ;\
    56                         echo "mknod -m 0666 ${DESTDIR}/lib/udev/devices/null c 1 3" ;\
    57                 fi \
    58         fi
    59         @if [ "$$UID" != "0" ]; then \
    60                 if ! [ -e ${DESTDIR}/lib/udev/devices/console ]; then \
    61                         echo "mknod -m 0600 ${DESTDIR}/lib/udev/devices/console c 5 1" ;\
    62                         echo "" ;\
    63                 fi \
    64         fi
    65 
    66 install-bootscripts: create-dirs create-service-dir udev_device_dirs udev_device_links
     31install-bootscripts: create-dirs create-service-dir
    6732
    6833        install -m ${MODE} clfs/init.d/checkfs       ${EXTDIR}/rc.d/init.d/
     
    139104        install -m ${MODE} contrib/sysconfig/network-devices/services/mtu ${EXTDIR}/sysconfig/network-devices/services
    140105
    141 install-minimal: create-dirs create-service-dir udev_device_dirs udev_device_links
     106install-minimal: create-dirs create-service-dir
    142107        sed -e 's|/bin:/usr/bin:/sbin:/usr/sbin|/tools/bin:/tools/sbin:/bin:/sbin|g' clfs/init.d/functions > clfs/init.d/functions.minimal
    143108        install -m ${MODE} clfs/init.d/checkfs                  ${EXTDIR}/rc.d/init.d/
     
    210175        install -m ${MODE} cblfs/sysconfig/network-devices/services/pppoe    ${EXTDIR}/sysconfig/network-devices/services
    211176
    212 install-netboot: create-dirs create-service-dir udev_device_dirs udev_device_links
     177install-netboot: create-dirs create-service-dir
    213178        rm -rf ${EXTDIR}/rc.d
    214179        install -d -m ${DIRMODE} ${EXTDIR}/rc.d
  • bootscripts/netboot/rc.sysinit

    r88c8bf0 r71c9190  
    2424echo "Starting udev"
    2525mount -n -t tmpfs -o mode=0755 udev /dev
    26 cp --preserve=all --recursive --remove-destination  /lib/udev/devices/* /dev
    2726chmod 1777 /dev/shm
    2827echo "" > /sys/kernel/uevent_helper
Note: See TracChangeset for help on using the changeset viewer.