From 18da154b58d7b8f24bb15846b2d96ec4dbab0fc1 Mon Sep 17 00:00:00 2001 From: Zack Winkles Date: Tue, 15 Jun 2004 19:28:46 +0000 Subject: [PATCH] Dropped the Udev patch in favor of separate configuration files Properly recreate /etc/hotplug.d/default/udev.hotplug git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3796 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 8 +++++++- chapter03/packages.xml | 15 ++++++++++++++- chapter03/patches.xml | 7 ------- chapter05/udev.xml | 17 ++++++----------- chapter06/udev.xml | 21 ++++++++++++--------- 5 files changed, 39 insertions(+), 29 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 9dd95fd43..6f8d51ee6 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -57,7 +57,7 @@ first a summary, then a detailed log. sysklogd-1.4.1-signal-1.patch sysvinit-2.85-proclen-1.patch udev-027 -udev-027-config-1.patch +udev-config-1.permissions util-linux-2.12a-kernel_headers-1.patch vim-6.3 language files @@ -76,6 +76,12 @@ first a summary, then a detailed log. +June 15, 2004 [winkie]: Recreate Udev's entry in /etc/hotplug.d, +since it's not correct for our purposes by default. + +June 15, 2004 [winkie]: Dropped the Udev patch in favor copying +the configuration file(s) to /etc/udev after installation. + June 15, 2004 [winkie]: Upgraded to Sed 4.1. June 15, 2004 [winkie]: Upgraded to Udev 027. diff --git a/chapter03/packages.xml b/chapter03/packages.xml index e2f7b2d46..fa8ad6834 100644 --- a/chapter03/packages.xml +++ b/chapter03/packages.xml @@ -375,6 +375,20 @@ + +Udev Permissions Configuration - 2 KB: + + + + + + +Udev Rules Configuration - 1 KB: + + + + + Util-linux (&util-linux-version;) - 1,814 KB: @@ -396,7 +410,6 @@ - Zlib (&zlib-version;) - 277 KB: diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 47e4c8dca..56fd738ef 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -160,13 +160,6 @@ url="&patches-root;linux-&linux-version;-fpu-1.patch"/> - -Udev Configuration Patch - 6 KB: - - - - - Util-Linux Kernel Headers Patch - 3 KB: diff --git a/chapter05/udev.xml b/chapter05/udev.xml index c532cc8e2..1d24b4a45 100644 --- a/chapter05/udev.xml +++ b/chapter05/udev.xml @@ -31,13 +31,6 @@ Installation of Udev -By default, the permissions udev assigns to nodes are all uniform, -being owned by user root, group root, and only accessible to root. As you -can easily imagine, this isn't ideal. Give it a much better configuration -by applying the following patch: - -patch -Np1 -i ../udev-&udev-version;-config-1.patch - The udevstart program hardcodes the path to the udev program in itself, which is bad since we install udev in a non-standard location. Fix this by running the following: @@ -53,13 +46,15 @@ configuration files: make prefix=/tools etcdir=/tools/etc -Generate Udev's main configuration file: +Install it: -make udevdir=/dev etc/udev/udev.conf +make DESTDIR=/tools udevdir=/dev install -Finally, install it: +Udev's configuration is far from ideal by default, so we install our own +configuration files here: -make DESTDIR=/tools install +cp ../udev-config-1.permissions /tools/etc/udev/permissions.d/00-lfs.permissions +cp ../udev-config-1.rules /tools/etc/udev/rules.d/00-lfs.rules diff --git a/chapter06/udev.xml b/chapter06/udev.xml index b9c124cde..e80e5b306 100644 --- a/chapter06/udev.xml +++ b/chapter06/udev.xml @@ -22,21 +22,24 @@ Installation of Udev -By default, the permissions udev assigns to nodes are all uniform, -being owned by user root, group root, and only accessible to root. As you -can easily imagine, this isn't ideal. Give it a much better configuration -by applying the following patch: - -patch -Np1 -i ../udev-&udev-version;-config-1.patch - -Now compile Udev: +First compile Udev: make udevdir=/dev -Finally, install it: +Install it: make udevdir=/dev install +Ensure that Hotplug addresses Udev correctly: + +ln -sf /sbin/udev /etc/hotplug.d/default/udev.hotplug + +Udev's configuration is far from ideal by default, so we install our own +configuration files here: + +cp ../udev-config-1.permissions /etc/udev/permissions.d/00-lfs.permissions +cp ../udev-config-1.rules /etc/udev/rules.d/00-lfs.rules +