]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pid1: downgrade if we can't make sense of the old device on MOVE uevent
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Jun 2021 13:34:34 +0000 (15:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 Jun 2021 13:01:05 +0000 (15:01 +0200)
If the name of the old device didn#t work for us, we don't have to clean
anything up, since we know for sure that there won't be a device unit
for it. hence downgrade log message about it.

src/core/device.c

index cceeb1fe7e2beb77432b7d9417c27145cfaf5c6c..5ed5ceb290429f7a614942bda1abf85e3c582356 100644 (file)
@@ -928,7 +928,7 @@ static void device_remove_old_on_move(Manager *m, sd_device *dev) {
 
         r = unit_name_from_path(syspath_old, ".device", &e);
         if (r < 0)
-                return (void) log_device_error_errno(dev, r, "Failed to generate unit name from old device path: %m");
+                return (void) log_device_debug_errno(dev, r, "Failed to generate unit name from old device path, ignoring: %m");
 
         device_update_found_by_sysfs(m, syspath_old, 0, DEVICE_FOUND_UDEV|DEVICE_FOUND_MOUNT|DEVICE_FOUND_SWAP);
 }