Split one udev rule so it is not wider than the book's page.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8779 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Bruce Dubbs 2008-12-29 06:29:45 +00:00
parent eed1d64760
commit 4c40da5385
4 changed files with 184 additions and 167 deletions

View File

@ -37,6 +37,17 @@
--> -->
<listitem>
<para>2008-12-29</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Split one udev rule so it is not wider than the
book's page.
</para>
</listitem>
</itemizedlist>
</listitem>
<listitem> <listitem>
<para>2008-12-24</para> <para>2008-12-24</para>
<itemizedlist> <itemizedlist>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="ISO-8859-1"?>
<!ENTITY version "SVN-20081224"> <!ENTITY version "SVN-20081229">
<!ENTITY releasedate "December 24, 2008"> <!ENTITY releasedate "December 29, 2008">
<!ENTITY copyrightdate "1999-2008"><!-- jhalfs needs a literal dash, not &ndash; --> <!ENTITY copyrightdate "1999-2009"><!-- jhalfs needs a literal dash, not &ndash; -->
<!ENTITY milestone "7.0"> <!ENTITY milestone "7.0">
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->

View File

@ -84,4 +84,6 @@ KERNEL=="st[0-9]*", GROUP="tape"
KERNEL=="nst[0-9]*", GROUP="tape" KERNEL=="nst[0-9]*", GROUP="tape"
# Override floppy devices # Override floppy devices
KERNEL=="fd[0-9]", ACTION=="add|change", ATTRS{cmos}=="?*", RUN+="create_floppy_devices -c -t $attr{cmos} -m %M -M 0660 -G floppy $root/%k" KERNEL=="fd[0-9]", ACTION=="add|change", ATTRS{cmos}=="?*", RUN+="create_floppy_devices \
-c -t $attr{cmos} -m %M -M 0660 -G floppy $root/%k"

View File

@ -1,215 +1,219 @@
2008-12-07 Bryan Kadzban <bryan@linuxfromscratch.org> 2008-12-07 Bruce Dubbs <bdubbs@linuxfromscratch.org>
* 55-lfs.rules: Remove several rules that are either provided by upstream, * 55-lfs.rules: Change one line to use continuation so it does
or that don't have any effect (there is no /dev/js or /dev/djs according not overflow the book's width.
to devices.txt).
* 55-lfs.rules, 61-cdrom.rules: Replace ACTION=="add" with "add|change"
everywhere, per upstream's general request.
2008-11-11 Bryan Kadzban <bryan@linuxfromscratch.org> 2008-12-07 Bryan Kadzban <bryan@linuxfromscratch.org>
* 55-lfs.rules, 61-cdrom.rules: Fix comments to use the right rule * 55-lfs.rules: Remove several rules that are either provided by upstream,
numbers. Thanks to Trent Shea for the fix. Closes #2278. or that don't have any effect (there is no /dev/js or /dev/djs according
to devices.txt).
* 55-lfs.rules, 61-cdrom.rules: Replace ACTION=="add" with "add|change"
everywhere, per upstream's general request.
2008-10-15 DJ Lucas <dj@linuxfromscratch.org> 2008-11-11 Bryan Kadzban <bryan@linuxfromscratch.org>
* 55-lfs.rules: Override default perms on floppy disk devices provided * 55-lfs.rules, 61-cdrom.rules: Fix comments to use the right rule
by 50-udev-default.rules. Thanks to Bruce Dubbs for the fix. Closes numbers. Thanks to Trent Shea for the fix. Closes #2278.
LFS ticket #2076.
2008-05-21 Bryan Kadzban <bryan@linuxfromscratch.org> 2008-10-15 DJ Lucas <dj@linuxfromscratch.org>
* 81-firmware.rules, doc/81-firmware.txt: Remove. This rule is * 55-lfs.rules: Override default perms on floppy disk devices provided
already handled by udev's 50-udev-default.rules file. The docs by 50-udev-default.rules. Thanks to Bruce Dubbs for the fix. Closes
can be added back later if needed. LFS ticket #2076.
* Makefile: Don't install the above deleted files.
* 55-lfs.rules: Remove the device-mapper rule, since the upstream
50-udev-default.rules file handles it properly.
2008-04-02 Bryan Kadzban <bryan@linuxfromscratch.org> 2008-05-21 Bryan Kadzban <bryan@linuxfromscratch.org>
* Makefile: Make the package DESTDIR-friendly by installing the docs * 81-firmware.rules, doc/81-firmware.txt: Remove. This rule is
into a fixed $(PREFIX)/share/doc/udev-config directory, instead of already handled by udev's 50-udev-default.rules file. The docs
trying to figure out what version of udev was just installed. can be added back later if needed.
* Makefile: Don't install the above deleted files.
* 55-lfs.rules: Remove the device-mapper rule, since the upstream
50-udev-default.rules file handles it properly.
2007-10-30 Bryan Kadzban <bryan@linuxfromscratch.org> 2008-04-02 Bryan Kadzban <bryan@linuxfromscratch.org>
* 55-lfs.rules: Since the dialout group was renamed to uucp, delete * Makefile: Make the package DESTDIR-friendly by installing the docs
the rules that override upstream's assignment of the dialout group. into a fixed $(PREFIX)/share/doc/udev-config directory, instead of
Replace "dialout" with "uucp" on the remaining rules. trying to figure out what version of udev was just installed.
2007-10-29 Bryan Kadzban <bryan@linuxfromscratch.org> 2007-10-30 Bryan Kadzban <bryan@linuxfromscratch.org>
* 51-lfs.rules: Move to 55-lfs.rules. * 55-lfs.rules: Since the dialout group was renamed to uucp, delete
* doc/51-lfs.rules: Move to doc/55-lfs.rules. the rules that override upstream's assignment of the dialout group.
Replace "dialout" with "uucp" on the remaining rules.
2007-10-27 Bryan Kadzban <bryan@linuxfromscratch.org> 2007-10-29 Bryan Kadzban <bryan@linuxfromscratch.org>
* 25-lfs.rules: Some rules in here are duplicates of rules from udev's * 51-lfs.rules: Move to 55-lfs.rules.
new 50-udev-defaults.rules file; remove them. Override permissions * doc/51-lfs.rules: Move to doc/55-lfs.rules.
where needed elsewhere (and document overrides in comments).
* 26-modprobe.rules: Provided by udev's 80-drivers.rules and built-in
modaliases for SCSI device-type modules in 2.6.22+ kernels; remove.
* 25-lfs.rules: Move to 51-lfs.rules. 2007-10-27 Bryan Kadzban <bryan@linuxfromscratch.org>
* 27-firmware.rules: Move to 81-firmware.rules. * 25-lfs.rules: Some rules in here are duplicates of rules from udev's
* 81-cdrom.rules: Move to 61-cdrom.rules. new 50-udev-defaults.rules file; remove them. Override permissions
where needed elsewhere (and document overrides in comments).
* 26-modprobe.rules: Provided by udev's 80-drivers.rules and built-in
modaliases for SCSI device-type modules in 2.6.22+ kernels; remove.
* doc/25-lfs.txt: Rename to 51-lfs.txt. * 25-lfs.rules: Move to 51-lfs.rules.
* doc/26-modprobe.txt: Rename to 80-drivers.txt, and modify to reflect * 27-firmware.rules: Move to 81-firmware.rules.
the upstream rules. * 81-cdrom.rules: Move to 61-cdrom.rules.
* doc/27-firmware.txt: Rename to 81-firmware.txt.
* doc/81-cdrom.txt: Rename to 61-cdrom.txt.
* Makefile: Use new filenames. * doc/25-lfs.txt: Rename to 51-lfs.txt.
* doc/26-modprobe.txt: Rename to 80-drivers.txt, and modify to reflect
the upstream rules.
* doc/27-firmware.txt: Rename to 81-firmware.txt.
* doc/81-cdrom.txt: Rename to 61-cdrom.txt.
2007-07-31 Dan Nicholson <dnicholson@linuxfromscratch.org> * Makefile: Use new filenames.
* 25-lfs.rules: Changed the usb_device rule tto create /dev/bus/usb
nodes if the usb_device in 2.6.22+ kernels. The rule was also changed
to only trigger on "add" events. This change is not backwards
compatible with older kernels.
2007-06-12 Dan Nicholson <dnicholson@linuxfromscratch.org> 2007-07-31 Dan Nicholson <dnicholson@linuxfromscratch.org>
* 25-lfs.rules: Fix the CPUID nodes from cpu/%n/cpu to cpu/%n/cpuid, * 25-lfs.rules: Changed the usb_device rule tto create /dev/bus/usb
which is what's expected in userspace apps such as x86info. nodes if the usb_device in 2.6.22+ kernels. The rule was also changed
to only trigger on "add" events. This change is not backwards
compatible with older kernels.
2007-06-08 Bryan Kadzban <bryan@linuxfromscratch.org> 2007-06-12 Dan Nicholson <dnicholson@linuxfromscratch.org>
* 25-lfs.rules: Add rules for DVB devices (create nodes in /dev/dvb/) * 25-lfs.rules: Fix the CPUID nodes from cpu/%n/cpu to cpu/%n/cpuid,
and floppies (create extra nodes based on CMOS type), copied from which is what's expected in userspace apps such as x86info.
the SuSE rules file. Thanks to Alexander Patrakov for the bugreport.
2007-03-04 Matthew Burgess <matthew@linuxfromscratch.org> 2007-06-08 Bryan Kadzban <bryan@linuxfromscratch.org>
* Makefile: Use `udevd --version' to work out what version of Udev is * 25-lfs.rules: Add rules for DVB devices (create nodes in /dev/dvb/)
installed (requires Udev >= 106) and floppies (create extra nodes based on CMOS type), copied from
the SuSE rules file. Thanks to Alexander Patrakov for the bugreport.
2007-01-02 Bryan Kadzban <bryan@linuxfromscratch.org> 2007-03-04 Matthew Burgess <matthew@linuxfromscratch.org>
* 25-lfs.rules: Change CPU devices (cpu, msr, microcode) to be in * Makefile: Use `udevd --version' to work out what version of Udev is
/dev/cpu/ and /dev/cpu/N/, to match Documentation/devices.txt. installed (requires Udev >= 106)
2006-10-21 Bryan Kadzban <bryan@linuxfromscratch.org> 2007-01-02 Bryan Kadzban <bryan@linuxfromscratch.org>
* Makefile: Add a missing backslash in install-extra-doc. * 25-lfs.rules: Change CPU devices (cpu, msr, microcode) to be in
/dev/cpu/ and /dev/cpu/N/, to match Documentation/devices.txt.
* 05-udev-early.rules, 60-persistent-input.rules, 2006-10-21 Bryan Kadzban <bryan@linuxfromscratch.org>
60-persistent-storage.rules, 95-udev-late.rules: Remove. The book * Makefile: Add a missing backslash in install-extra-doc.
will install these files from udev's etc/udev/rules.d directory
instead.
* Makefile: Don't install these rules files after all. Also, only
install corresponding docs if requested.
2006-10-20 Bryan Kadzban <bryan@linuxfromscratch.org> * 05-udev-early.rules, 60-persistent-input.rules,
* Makefile: Added; contains targets to install rules and doc files. 60-persistent-storage.rules, 95-udev-late.rules: Remove. The book
From Dan Nicholson. will install these files from udev's etc/udev/rules.d directory
instead.
* Makefile: Don't install these rules files after all. Also, only
install corresponding docs if requested.
2006-10-14 Bryan Kadzban <bryan@linuxfromscratch.org> 2006-10-20 Bryan Kadzban <bryan@linuxfromscratch.org>
* 05-udev-early.rules, 60-persistent-storage.rules: Sync up with * Makefile: Added; contains targets to install rules and doc files.
upstream sample rules files (from udev-102), except for one rule From Dan Nicholson.
which is more specific in our tarball and should probably be changed
upstream.
* doc/60-persistent-storage.txt: Modify to match the changes. Also
fix a couple typos.
* 25-lfs.rules: Remove duplicate rules (ttyS[0-9]* is also matched by 2006-10-14 Bryan Kadzban <bryan@linuxfromscratch.org>
tty[BC...S...][0-9]*, and ttyUSB[0-9]* is in there twice). * 05-udev-early.rules, 60-persistent-storage.rules: Sync up with
upstream sample rules files (from udev-102), except for one rule
which is more specific in our tarball and should probably be changed
upstream.
* doc/60-persistent-storage.txt: Modify to match the changes. Also
fix a couple typos.
* 25-lfs.rules: Fix Alsa device KERNEL rules. Udev uses shell-style * 25-lfs.rules: Remove duplicate rules (ttyS[0-9]* is also matched by
glob matching, not regular expressions, so the old rules would match tty[BC...S...][0-9]*, and ttyUSB[0-9]* is in there twice).
nonsense device names like hw0asdf and pcmDzxcv. As long as the first
character after the "fixed" portion was in the list, the rule would
match; it wouldn't apply the same character range to later characters.
* doc/25-lfs.txt: Add a note on interaction between permissions and * 25-lfs.rules: Fix Alsa device KERNEL rules. Udev uses shell-style
symlinks. glob matching, not regular expressions, so the old rules would match
nonsense device names like hw0asdf and pcmDzxcv. As long as the first
character after the "fixed" portion was in the list, the rule would
match; it wouldn't apply the same character range to later characters.
2006-10-09 Bryan Kadzban <bryan@linuxfromscrtach.org> * doc/25-lfs.txt: Add a note on interaction between permissions and
* 25-lfs.rules: Fix fb[0-9]* device permissions (should use the default symlinks.
0660).
* doc/25-lfs.txt: Fix typo: /dev/ptmx is given mode 0666, not 0660. 2006-10-09 Bryan Kadzban <bryan@linuxfromscrtach.org>
Also tweak the comment about other TTY devices. * 25-lfs.rules: Fix fb[0-9]* device permissions (should use the default
0660).
2006-10-04 Bryan Kadzban <bryan@linuxfromscratch.org> * doc/25-lfs.txt: Fix typo: /dev/ptmx is given mode 0666, not 0660.
* 05-udev-early.rules: Remove WAIT_FOR_SYSFS="bus" rule. With kernel Also tweak the comment about other TTY devices.
2.6.18, this rule is no longer required.
* doc/05-udev-early.txt: Update to match. 2006-10-04 Bryan Kadzban <bryan@linuxfromscratch.org>
* 05-udev-early.rules: Remove WAIT_FOR_SYSFS="bus" rule. With kernel
2.6.18, this rule is no longer required.
2006-09-28 Bryan Kadzban <bryan@linuxfromscratch.org> * doc/05-udev-early.txt: Update to match.
* doc/60-persistent-storage.txt: Explain persistent storage rules, or
at least the parts I understand. (I don't use DASD or netblock or
several other supported configurations.)
* doc/81-cdrom.txt: Explain 81-cdrom.rules. 2006-09-28 Bryan Kadzban <bryan@linuxfromscratch.org>
* doc/60-persistent-storage.txt: Explain persistent storage rules, or
at least the parts I understand. (I don't use DASD or netblock or
several other supported configurations.)
* doc/95-udev-late.txt: Explain 95-udev-late.rules. Documentation is * doc/81-cdrom.txt: Explain 81-cdrom.rules.
now finished.
2006-09-26 Bryan Kadzban <bryan@linuxfromscratch.org> * doc/95-udev-late.txt: Explain 95-udev-late.rules. Documentation is
* doc/60-persistent-input.txt: Explain (in probably too much detail) now finished.
60-persistent-input.rules.
2006-09-24 Bryan Kadzban <bryan@linuxfromscratch.org> 2006-09-26 Bryan Kadzban <bryan@linuxfromscratch.org>
* doc/05-udev-early.txt: Rewrap to fit 80 columns. * doc/60-persistent-input.txt: Explain (in probably too much detail)
60-persistent-input.rules.
* doc/26-modprobe.txt: Explain 26-modprobe.rules, and modaliases. 2006-09-24 Bryan Kadzban <bryan@linuxfromscratch.org>
* doc/05-udev-early.txt: Rewrap to fit 80 columns.
* doc/27-firmware.txt: Explain 27-firmware.rules. * doc/26-modprobe.txt: Explain 26-modprobe.rules, and modaliases.
2006-09-24 Bryan Kadzban <bryan@linuxfromscratch.org> * doc/27-firmware.txt: Explain 27-firmware.rules.
* doc/25-lfs.txt: Explain 25-lfs.rules.
* 25-lfs.rules: Use SYMLINK+= for isdn/capi20 also. 2006-09-24 Bryan Kadzban <bryan@linuxfromscratch.org>
* doc/25-lfs.txt: Explain 25-lfs.rules.
2006-09-23 Bryan Kadzban <bryan@linuxfromscratch.org> * 25-lfs.rules: Use SYMLINK+= for isdn/capi20 also.
* doc: New subdirectory to contain documentation of rules
* doc/README: New file, top-level documentation
* doc/*.txt: New documentation files, one for each rules file. Only
05-udev-early.txt has anything in it.
2006-09-23 Bryan Kadzban <bryan@linuxfromscratch.org> 2006-09-23 Bryan Kadzban <bryan@linuxfromscratch.org>
* 25-lfs.rules: Add "ignore_device" to OPTIONS for DRI devices, instead * doc: New subdirectory to contain documentation of rules
of setting NAME to an empty string. This matches the way we ignore * doc/README: New file, top-level documentation
devmapper / LVM devices. * doc/*.txt: New documentation files, one for each rules file. Only
05-udev-early.txt has anything in it.
2006-09-22 Bryan Kadzban <bryan@linuxfromscratch.org> 2006-09-23 Bryan Kadzban <bryan@linuxfromscratch.org>
* 60-persistent-input.rules, 95-udev-late.rules: Import from udev-100. * 25-lfs.rules: Add "ignore_device" to OPTIONS for DRI devices, instead
60-persistent-input.rules creates persistent symlinks for input of setting NAME to an empty string. This matches the way we ignore
devices, and 95-udev-late.rules enables udevmonitor. devmapper / LVM devices.
* 60-persistent-storage.rules: Replace ATTRS{../removable} with just 2006-09-22 Bryan Kadzban <bryan@linuxfromscratch.org>
ATTRS{removable} on partition devices. Replace ATTRS{removable} * 60-persistent-input.rules, 95-udev-late.rules: Import from udev-100.
with ATTR{removable} on whole-disk devices. 60-persistent-input.rules creates persistent symlinks for input
devices, and 95-udev-late.rules enables udevmonitor.
2006-09-20 Bryan Kadzban <bryan@linuxfromscratch.org> * 60-persistent-storage.rules: Replace ATTRS{../removable} with just
* 05-early.rules: Missed a rule in the last change. ENV{PHYSDEVBUS} ATTRS{removable} on partition devices. Replace ATTRS{removable}
in the rule that waits for the "bus" symlink should be replaced by with ATTR{removable} on whole-disk devices.
SUBSYSTEMS.
2006-09-20 Bryan Kadzban <bryan@linuxfromscratch.org> 2006-09-20 Bryan Kadzban <bryan@linuxfromscratch.org>
* Adapted rules to the new matches used in udev-098 and above (e.g., * 05-early.rules: Missed a rule in the last change. ENV{PHYSDEVBUS}
SYSFS becomes ATTRS). Prevents warnings, and support for the old in the rule that waits for the "bus" symlink should be replaced by
matches will be removed eventually. These rules will not work with SUBSYSTEMS.
udev-097 and before!
* Fixed several bugs in the rules left over from previous udev
versions (missing commas, overwriting user symlinks using ="..."
instead of +="...", and matching against "*" instead of "?*").
* Renamed CHANGELOG to ChangeLog, started using pseudo-GNU-format 2006-09-20 Bryan Kadzban <bryan@linuxfromscratch.org>
entries. (See standards.info; search it for "changelog" to get * Adapted rules to the new matches used in udev-098 and above (e.g.,
the general gist.) SYSFS becomes ATTRS). Prevents warnings, and support for the old
matches will be removed eventually. These rules will not work with
udev-097 and before!
* Fixed several bugs in the rules left over from previous udev
versions (missing commas, overwriting user symlinks using ="..."
instead of +="...", and matching against "*" instead of "?*").
* Renamed CHANGELOG to ChangeLog, started using pseudo-GNU-format
entries. (See standards.info; search it for "changelog" to get
the general gist.)
dnicholson - Jul 14, 2006 dnicholson - Jul 14, 2006
* Fixed usbdev PROGRAM so that it works with the BusyBox sh. Thanks * Fixed usbdev PROGRAM so that it works with the BusyBox sh. Thanks
to Anthony Wright. to Anthony Wright.
n/a - Jul 12, 2006 n/a - Jul 12, 2006
* Added options so temporary nodes are not created with device-mapper * Added options so temporary nodes are not created with device-mapper
* Adapted cdrom rules to identify CD-ROM drives correctly by adding * Adapted cdrom rules to identify CD-ROM drives correctly by adding
SUBSYSTEM=="block" test. SUBSYSTEM=="block" test.
* Added simple 81-cdrom.rules file to set cdrom group ownership * Added simple 81-cdrom.rules file to set cdrom group ownership
n/a - Jun 07, 2006 n/a - Jun 07, 2006
* Removed nvidia rules * Removed nvidia rules
* Removed bug reporting rule * Removed bug reporting rule
* Moved Debian-based persistent CD-ROM rules to contrib * Moved Debian-based persistent CD-ROM rules to contrib
* Adapted firmware rule to udev-093 * Adapted firmware rule to udev-093
n/a - May 15, 2006 n/a - May 15, 2006
* Part one of 25-lfs.rules rewrite * Part one of 25-lfs.rules rewrite
* Some minor tweaking of the layout * Some minor tweaking of the layout
n/a - May 12, 2006 n/a - May 12, 2006
* Initial import of the udev-config directory. * Initial import of the udev-config directory.
* Reorganized and modularized the rules files. * Reorganized and modularized the rules files.
* Added explanatory comments * Added explanatory comments