forked from pool/systemd
fc3ae7490c
- Update to new upstream release 221 OBS-URL: https://build.opensuse.org/request/show/313261 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=875
21 lines
802 B
Diff
21 lines
802 B
Diff
Exclude cd/dvd as well (bnc#882714)
|
|
|
|
---
|
|
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
|
|
|
|
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;
|