Changeset ac3fb3e9 for chapter07/symlinks.xml
- Timestamp:
- 11/11/2006 12:49:19 AM (17 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, 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/symlinks.xml
r97c1e3ce rac3fb3e9 33 33 approach, create a file similar to the following:</para> 34 34 35 <screen role="nodump"><userinput>cat > /etc/udev/rules.d/ 82-cdrom.rules << EOF35 <screen role="nodump"><userinput>cat > /etc/udev/rules.d/70-persistent-cd.rules << EOF 36 36 <literal> 37 37 # Custom CD-ROM symlinks 38 38 SUBSYSTEM=="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" 40 40 SUBSYSTEM=="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" 42 42 </literal> 43 43 EOF</userinput></screen> … … 69 69 <filename>/dev/sgX</filename>, which is wrong.</para> 70 70 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 71 75 <para>The second approach yields:</para> 72 76 73 <screen role="nodump"><userinput>cat > /etc/udev/rules.d/ 82-cdrom.rules << EOF77 <screen role="nodump"><userinput>cat > /etc/udev/rules.d/70-persistent-cd.rules << EOF 74 78 <literal> 75 79 # Custom CD-ROM symlinks 76 80 SUBSYSTEM=="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" 78 83 SUBSYSTEM=="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" 80 86 </literal> 81 87 EOF</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.