Changeset 2a1c1e0
- Timestamp:
- 10/06/2011 03:35:49 PM (13 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 81060b6
- Parents:
- b777a9e
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/ChangeLog
rb777a9e r2a1c1e0 1 2100-09-18 1 2011-10-06 Bryan Kadzban <bryan@linuxfromscratch.org> 2 3 * Add configuration for udev_retry, and remove --type=failed (which does 4 not work with recent udev versions anyway, since no events can possibly 5 trigger it). Start with just the "rtc" subsystem. BLFS should eventually 6 add "sound" to this file, and perhaps others. 7 8 2011-09-18 2 9 * Review and update of changes made in previous change. 3 10 ** Rename /etc/sysconfig/init_params to /etc/sysconfig/rc.site. -
bootscripts/Makefile
rb777a9e r2a1c1e0 60 60 if [ ! -f ${EXTDIR}/sysconfig/modules ]; then \ 61 61 install -m ${CONFMODE} lfs/sysconfig/modules ${EXTDIR}/sysconfig/ ;\ 62 fi 63 if [ ! -f ${EXTDIR}/sysconfig/udev_retry ]; then \ 64 install -m ${CONFMODE} lfs/sysconfig/udev_retry ${EXTDIR}/sysconfig/ ;\ 62 65 fi 63 66 if [ ! -f ${EXTDIR}/sysconfig/rc ]; then \ -
bootscripts/lfs/init.d/udev_retry
rb777a9e r2a1c1e0 8 8 # DJ Lucas - dj@linuxfromscratch.org 9 9 # Update : Bruce Dubbs - bdubbs@linuxfromscratch.org 10 # Bryan Kadzban - 10 11 # 11 12 # Version : LFS 7.0 … … 45 46 done 46 47 47 # Re-trigger the failed uevents in hope they will succeed now 48 /sbin/udevadm trigger --type=failed --action=add 48 # Re-trigger the uevents that may have failed, 49 # in hope they will succeed now 50 /bin/sed -e 's/#.*$//' /etc/sysconfig/udev_retry | /bin/grep -v '^$' | \ 51 while read line ; do 52 for subsystem in $line ; do 53 /sbin/udevadm trigger --subsystem-match=$subsystem --action=add 54 done 55 done 49 56 50 57 # Now wait for udevd to process the uevents we triggered -
chapter01/changelog.xml
rb777a9e r2a1c1e0 37 37 38 38 --> 39 <listitem> 40 <para>2011-10-06</para> 41 <itemizedlist> 42 <listitem> 43 <para>[bryan] - Fix the udev_retry script, and add an explanation 44 for how to configure it.</para> 45 </listitem> 46 </itemizedlist> 47 </listitem> 48 39 49 <listitem> 40 50 <para>2011-10-05</para> -
chapter07/udev.xml
rb777a9e r2a1c1e0 94 94 95 95 <sect3> 96 <title>Udev Bootscript </title>97 98 <para>The <command>/etc/rc.d/init.d/udev</command> initscript takes care of creating99 device nodes when Linux is booted. The script unsets the uevent handler100 from the default of <command>/sbin/hotplug</command>. This is done101 because the kernel no longer needs to call out to an external binary.102 Instead <command>udevd</command> will listen on a netlink socket for103 uevents that the kernel raises. Next, the bootscript copies any static104 device nodes that exist in <filename96 <title>Udev Bootscripts</title> 97 98 <para>The <command>/etc/rc.d/init.d/udev</command> initscript takes care 99 of creating device nodes when Linux is booted. The script unsets the 100 uevent handler from the default of <command>/sbin/hotplug</command>. 101 This is done because the kernel no longer needs to call out to an 102 external binary. Instead <command>udevd</command> will listen on a 103 netlink socket for uevents that the kernel raises. Next, the bootscript 104 copies any static device nodes that exist in <filename 105 105 class="directory">/lib/udev/devices</filename> to <filename 106 class="directory">/dev</filename>. This is necessary because some devices, 107 directories, and symlinks are needed before the dynamic device handling 108 processes are available during the early stages of booting a system, or 109 are required by <command>udevd</command> itself. Creating static device 110 nodes in <filename class="directory">/lib/udev/devices</filename> also 111 provides an easy workaround for devices that are not supported by the 112 dynamic device handling infrastructure. The bootscript then starts the 113 Udev daemon, <command>udevd</command>, which will act on any uevents it 114 receives. Finally, the bootscript forces the kernel to replay uevents for 115 any devices that have already been registered and then waits for 106 class="directory">/dev</filename>. This is necessary because some 107 devices, directories, and symlinks are needed before the dynamic device 108 handling processes are available during the early stages of booting a 109 system, or are required by <command>udevd</command> itself. Creating 110 static device nodes in <filename 111 class="directory">/lib/udev/devices</filename> also provides an easy 112 workaround for devices that are not supported by the dynamic device 113 handling infrastructure. The bootscript then starts the Udev daemon, 114 <command>udevd</command>, which will act on any uevents it receives. 115 Finally, the bootscript forces the kernel to replay uevents for any 116 devices that have already been registered and then waits for 116 117 <command>udevd</command> to handle them.</para> 117 118 119 <para>The <command>/etc/rc.d/init.d/udev_retry</command> initscript takes 120 care of re-triggering events for subsystems whose rules may rely on 121 filesystems that are not mounted until the <command>mountfs</command> 122 script is run (in particular, /usr and /var may cause this). This script 123 runs after the <command>mountfs</command> script, so those rules (if 124 re-triggered) should succeed the second time around. It is configured 125 from the <filename>/etc/sysconfig/udev_retry</filename> file; any words 126 in this file other than comments are considered subsystem names to 127 trigger at retry time. (To find the subsystem of a device, use 128 <command>udevadm info --attribute-walk</command>.)</para> 129 118 130 </sect3> 119 131 … … 121 133 <title>Device Node Creation</title> 122 134 123 <para>To obtain the right major and minor number for a device, Udev relies124 on the information provided by <systemitem135 <para>To obtain the right major and minor number for a device, Udev 136 relies on the information provided by <systemitem 125 137 class="filesystem">sysfs</systemitem> in <filename 126 138 class="directory">/sys</filename>. For example, 127 139 <filename>/sys/class/tty/vcs/dev</filename> contains the string 128 <quote>7:0</quote>. This string is used by <command>udevd</command> 129 tocreate a device node with major number <emphasis>7</emphasis> and minor140 <quote>7:0</quote>. This string is used by <command>udevd</command> to 141 create a device node with major number <emphasis>7</emphasis> and minor 130 142 <emphasis>0</emphasis>. The names and permissions of the nodes created 131 143 under the <filename class="directory">/dev</filename> directory are -
general.ent
rb777a9e r2a1c1e0 1 <!ENTITY version "SVN-2011100 5">2 <!ENTITY releasedate "Oc 5 5, 2011">1 <!ENTITY version "SVN-20111006"> 2 <!ENTITY releasedate "Oct 6, 2011"> 3 3 <!ENTITY copyrightdate "1999-2011"><!-- jhalfs needs a literal dash, not – --> 4 4 <!ENTITY milestone "7.0"> -
packages.ent
rb777a9e r2a1c1e0 299 299 <!ENTITY less-ch6-sbu "less than 0.1 SBU"> 300 300 301 <!ENTITY lfs-bootscripts-version "2011 0926"> <!-- Scripts depend on this format -->301 <!ENTITY lfs-bootscripts-version "20111006"> <!-- Scripts depend on this format --> 302 302 <!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB"> <!-- Updated in Makefile --> 303 303 <!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
Note:
See TracChangeset
for help on using the changeset viewer.