Ignore:
Timestamp:
11/11/2006 12:49:19 AM (17 years ago)
Author:
Bryan Kadzban <bryan@…>
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, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 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:
3f25fa4
Parents:
97c1e3ce
Message:

Move custom CD symlink and custom NIC name rules files to 70-persistent-*.rules, and add ENV{GENERATED} to the CD symlink rules. Prevents Udev rule_generator stuff from conflicting.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7854 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/symlinks.xml

    r97c1e3ce rac3fb3e9  
    3333    approach, create a file similar to the following:</para>
    3434
    35 <screen role="nodump"><userinput>cat &gt; /etc/udev/rules.d/82-cdrom.rules &lt;&lt; EOF
     35<screen role="nodump"><userinput>cat &gt; /etc/udev/rules.d/70-persistent-cd.rules &lt;&lt; EOF
    3636<literal>
    3737# Custom CD-ROM symlinks
    3838SUBSYSTEM=="block", ENV{ID_MODEL}=="SAMSUNG_CD-ROM_SC-148F", \
    39     ENV{ID_REVISION}=="PS05", SYMLINK+="cdrom"
     39    ENV{ID_REVISION}=="PS05", ENV{GENERATED}="1", SYMLINK+="cdrom"
    4040SUBSYSTEM=="block", ENV{ID_MODEL}=="PHILIPS_CDD5301", \
    41     ENV{ID_SERIAL}=="5VO1306DM00190", SYMLINK+="cdrom1 dvd"
     41    ENV{ID_SERIAL}=="5VO1306DM00190", ENV{GENERATED}="1", SYMLINK+="cdrom1 dvd"
    4242</literal>
    4343EOF</userinput></screen>
     
    6969    <filename>/dev/sgX</filename>, which is wrong.</para>
    7070
     71    <para>The ENV{GENERATED}="1" key is needed to prevent the Udev
     72    75-cd-aliases-generator.rules file from overriding your custom
     73    rules.</para>
     74
    7175    <para>The second approach yields:</para>
    7276
    73 <screen role="nodump"><userinput>cat &gt; /etc/udev/rules.d/82-cdrom.rules &lt;&lt; EOF
     77<screen role="nodump"><userinput>cat &gt; /etc/udev/rules.d/70-persistent-cd.rules &lt;&lt; EOF
    7478<literal>
    7579# Custom CD-ROM symlinks
    7680SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \
    77     ENV{ID_PATH}=="pci-0000:00:07.1-ide-0:1", SYMLINK+="cdrom"
     81    ENV{ID_PATH}=="pci-0000:00:07.1-ide-0:1", \
     82    ENV{GENERATED}="1", SYMLINK+="cdrom"
    7883SUBSYSTEM=="block", ENV{ID_TYPE}=="cd", \
    79     ENV{ID_PATH}=="pci-0000:00:07.1-ide-1:1", SYMLINK+="cdrom1 dvd"
     84    ENV{ID_PATH}=="pci-0000:00:07.1-ide-1:1", \
     85    ENV{GENERATED}="1", SYMLINK+="cdrom1 dvd"
    8086</literal>
    8187EOF</userinput></screen>
Note: See TracChangeset for help on using the changeset viewer.