From 4d94c74fae21f7ef02a5f14b8296a4522d6b51df Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 2 Jun 2021 15:34:34 +0200 Subject: [PATCH] pid1: downgrade if we can't make sense of the old device on MOVE uevent 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/device.c b/src/core/device.c index cceeb1fe7e2..5ed5ceb2904 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -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); } -- 2.47.3