[Clfs-commits] [Bootscripts Standard]Bootscripts for Cross-LFS branch, master, updated. 71c919031f08dcc8b55a3e4a98da1ac8ec8897b0
git
git at cross-lfs.org
Sat May 17 03:21:42 PDT 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Bootscripts for Cross-LFS".
The branch, master has been updated
via 71c919031f08dcc8b55a3e4a98da1ac8ec8897b0 (commit)
from 88c8bf0513760ffb908a3a3e5fc105a153953bcc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 71c919031f08dcc8b55a3e4a98da1ac8ec8897b0
Author: Chris Staub <chris at beaker67.com>
Date: Sat May 17 06:21:20 2014 -0400
Don't need /lib/udev/devices anymore
diff --git a/bootscripts/Changelog b/bootscripts/Changelog
index b14ec06..41d66bc 100644
--- a/bootscripts/Changelog
+++ b/bootscripts/Changelog
@@ -1,5 +1,6 @@
Chris - May 17, 2014
* Removed obsolete ONHOTPLUG reference from README
+ * Removed obsolete commands to create and populate /lib/udev/devices
jim - June 4, 2009
* Fixed Bootlogging Ticket #211.
diff --git a/bootscripts/Makefile b/bootscripts/Makefile
index 23988fe..75dbc8d 100644
--- a/bootscripts/Makefile
+++ b/bootscripts/Makefile
@@ -28,42 +28,7 @@ create-dirs:
create-service-dir:
install -d -m ${DIRMODE} ${EXTDIR}/sysconfig/network-devices/services
-udev_device_dirs:
- install -d -m ${DIRMODE} ${DESTDIR}/lib/udev/devices/{pts,shm,net}
-
-udev_device_links: udev_device_dirs
- ln -snf /proc/self/fd ${DESTDIR}/lib/udev/devices/fd
- ln -snf /proc/self/fd/0 ${DESTDIR}/lib/udev/devices/stdin
- ln -snf /proc/self/fd/1 ${DESTDIR}/lib/udev/devices/stdout
- ln -snf /proc/self/fd/2 ${DESTDIR}/lib/udev/devices/stderr
- ln -snf /proc/kcore ${DESTDIR}/lib/udev/devices/core
-
-mknod_devices: udev_device_dirs
- @if [ "$$UID" = "0" ]; then \
- if ! [ -e ${DESTDIR}/lib/udev/devices/null ]; then \
- mknod -m 0666 ${DESTDIR}/lib/udev/devices/null c 1 3 ;\
- fi \
- fi
- @if [ "$$UID" = "0" ]; then \
- if ! [ -e ${DESTDIR}/lib/udev/devices/console ]; then \
- mknod -m 0600 ${DESTDIR}/lib/udev/devices/console c 5 1 ;\
- fi \
- fi
- @if [ "$$UID" != "0" ]; then \
- if ! [ -e ${DESTDIR}/lib/udev/devices/null ]; then \
- echo "You will need to issue the following command as the root user" ;\
- echo "" ;\
- echo "mknod -m 0666 ${DESTDIR}/lib/udev/devices/null c 1 3" ;\
- fi \
- fi
- @if [ "$$UID" != "0" ]; then \
- if ! [ -e ${DESTDIR}/lib/udev/devices/console ]; then \
- echo "mknod -m 0600 ${DESTDIR}/lib/udev/devices/console c 5 1" ;\
- echo "" ;\
- fi \
- fi
-
-install-bootscripts: create-dirs create-service-dir udev_device_dirs udev_device_links
+install-bootscripts: create-dirs create-service-dir
install -m ${MODE} clfs/init.d/checkfs ${EXTDIR}/rc.d/init.d/
install -m ${MODE} clfs/init.d/cleanfs ${EXTDIR}/rc.d/init.d/
@@ -138,7 +103,7 @@ install-network: create-dirs create-service-dir
install-service-mtu: create-service-dir
install -m ${MODE} contrib/sysconfig/network-devices/services/mtu ${EXTDIR}/sysconfig/network-devices/services
-install-minimal: create-dirs create-service-dir udev_device_dirs udev_device_links
+install-minimal: create-dirs create-service-dir
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
install -m ${MODE} clfs/init.d/checkfs ${EXTDIR}/rc.d/init.d/
install -m ${MODE} clfs/init.d/cleanfs ${EXTDIR}/rc.d/init.d/
@@ -209,7 +174,7 @@ install-service-ipx: create-service-dir
install-service-pppoe: create-service-dir
install -m ${MODE} cblfs/sysconfig/network-devices/services/pppoe ${EXTDIR}/sysconfig/network-devices/services
-install-netboot: create-dirs create-service-dir udev_device_dirs udev_device_links
+install-netboot: create-dirs create-service-dir
rm -rf ${EXTDIR}/rc.d
install -d -m ${DIRMODE} ${EXTDIR}/rc.d
install -m ${MODE} netboot/rc.0 ${EXTDIR}/rc.d/
diff --git a/bootscripts/netboot/rc.sysinit b/bootscripts/netboot/rc.sysinit
index 471c12c..886c42b 100755
--- a/bootscripts/netboot/rc.sysinit
+++ b/bootscripts/netboot/rc.sysinit
@@ -23,7 +23,6 @@ echo ""
echo "Starting udev"
mount -n -t tmpfs -o mode=0755 udev /dev
-cp --preserve=all --recursive --remove-destination /lib/udev/devices/* /dev
chmod 1777 /dev/shm
echo "" > /sys/kernel/uevent_helper
/sbin/udevd --daemon
-----------------------------------------------------------------------
Summary of changes:
bootscripts/Changelog | 1 +
bootscripts/Makefile | 41 ++-------------------------------------
bootscripts/netboot/rc.sysinit | 1 -
3 files changed, 4 insertions(+), 39 deletions(-)
hooks/post-receive
--
Bootscripts for Cross-LFS
More information about the Clfs-commits
mailing list