summary refs log tree commit diff
path: root/pkgs/os-specific/linux/systemd/fix-device-aliases.patch
blob: 508fd0ec0749842372ec58830928a4e8802a3beb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/core/device.c b/src/core/device.c
index 5307341..7bbe99a 100644
--- a/src/core/device.c
+++ b/src/core/device.c
@@ -255,8 +255,7 @@ static int device_update_unit(Manager *m, struct udev_device *dev, const char *p
                         if (!is_path(alias))
                                 log_warning("SYSTEMD_ALIAS for %s is not a path, ignoring: %s", sysfs, alias);
                         else {
-                                if ((r = device_add_escaped_name(u, alias)) < 0)
-                                        goto fail;
+                                device_update_unit(m, dev, alias, false);
                         }
                 }