2014-06-18 15:10:45 +02:00
|
|
|
Exclude cd/dvd as well (bnc#882714)
|
|
|
|
|
2015-06-23 14:56:50 +02:00
|
|
|
---
|
|
|
|
src/udev/udevd.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
Index: systemd-221/src/udev/udevd.c
|
|
|
|
===================================================================
|
|
|
|
--- systemd-221.orig/src/udev/udevd.c
|
|
|
|
+++ systemd-221/src/udev/udevd.c
|
|
|
|
@@ -1022,7 +1022,8 @@ static int synthesize_change(struct udev
|
2014-06-18 15:10:45 +02:00
|
|
|
|
|
|
|
if (streq_ptr("block", udev_device_get_subsystem(dev)) &&
|
|
|
|
streq_ptr("disk", udev_device_get_devtype(dev)) &&
|
|
|
|
- !startswith(udev_device_get_sysname(dev), "dm-")) {
|
|
|
|
+ !startswith(udev_device_get_sysname(dev), "dm-") &&
|
|
|
|
+ !startswith(udev_device_get_sysname(dev), "sr")) {
|
|
|
|
bool part_table_read = false;
|
|
|
|
bool has_partitions = false;
|
|
|
|
int fd;
|