31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
From 0643276850f9d331da9f58eba80029ee7f28d6eb Mon Sep 17 00:00:00 2001
|
|
From: Robert Milasan <rmilasan@suse.com>
|
|
Date: Sat, 12 Jul 2014 14:20:36 +0200
|
|
Subject: [PATCH 05/11] udev: create default symlinks for primary cd_dvd drive
|
|
|
|
Imported from SLE12-SP1, commit 4f8bacfbffd7049608b5076.
|
|
|
|
[fbui: updated for SLE15-SP4: since commit 38f3e20883ff658935aae5c9 (v248), the
|
|
symlinks /dev/cdrw and /dev/dvdrw could no longer be created. Futhermore
|
|
the rule added by this patch dealing with /dev/cdrom was redundant with
|
|
the upstream one]
|
|
|
|
[rmilasan: fixes bnc#783054]
|
|
---
|
|
rules.d/60-cdrom_id.rules | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/rules.d/60-cdrom_id.rules b/rules.d/60-cdrom_id.rules
|
|
index 288f8ce2f9..58e8ccb54b 100644
|
|
--- a/rules.d/60-cdrom_id.rules
|
|
+++ b/rules.d/60-cdrom_id.rules
|
|
@@ -25,5 +25,6 @@ IMPORT{program}="cdrom_id --lock-media $devnode"
|
|
ENV{DISK_MEDIA_CHANGE}=="?*", ENV{ID_CDROM_MEDIA}!="?*", ENV{SYSTEMD_READY}="0"
|
|
|
|
KERNEL=="sr0", SYMLINK+="cdrom", OPTIONS+="link_priority=-100"
|
|
+KERNEL=="sr0", ENV{ID_CDROM_DVD}=="1", SYMLINK+="dvd", OPTIONS+="link_priority=-100"
|
|
|
|
LABEL="cdrom_end"
|
|
--
|
|
2.35.3
|
|
|