Changeset 71c9190 in bootscripts-standard for bootscripts/Makefile


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.