forked from pool/systemd
8b6afdd7bf
- Reinstate and improve (remove huge indents from) tty-ask-password-agent-on-console.patch, 0014-journald-with-journaling-FS.patch, rootsymlink_generator. OBS-URL: https://build.opensuse.org/request/show/286310 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=847
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
From: Robert Milasan <rmilasan@suse.com>
|
|
Date: Tue, 12 Feb 2013 09:16:23 +0000
|
|
Subject: create default links for primary cd_dvd drive
|
|
|
|
cdrom_id: created links for the default cd/dvd drive (bnc#783054).
|
|
---
|
|
rules/60-cdrom_id.rules | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
Index: systemd/rules/60-cdrom_id.rules
|
|
===================================================================
|
|
--- systemd.orig/rules/60-cdrom_id.rules
|
|
+++ systemd/rules/60-cdrom_id.rules
|
|
@@ -20,6 +20,9 @@ IMPORT{program}="cdrom_id --lock-media $
|
|
# stale mounts after ejecting
|
|
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}=="1", SYMLINK+="cdrom", OPTIONS+="link_priority=-100"
|
|
+KERNEL=="sr0", ENV{ID_CDROM_CD_RW}=="1", SYMLINK+="cdrw", OPTIONS+="link_priority=-100"
|
|
+KERNEL=="sr0", ENV{ID_CDROM_DVD}=="1", SYMLINK+="dvd", OPTIONS+="link_priority=-100"
|
|
+KERNEL=="sr0", ENV{ID_CDROM_DVD_RW}=="1", SYMLINK+="dvdrw", OPTIONS+="link_priority=-100"
|
|
|
|
LABEL="cdrom_end"
|