From: Lennart Poettering Date: Wed, 2 Jun 2021 13:34:34 +0000 (+0200) Subject: pid1: downgrade if we can't make sense of the old device on MOVE uevent X-Git-Tag: v249-rc1~103^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d94c74fae21f7ef02a5f14b8296a4522d6b51df;p=thirdparty%2Fsystemd.git 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. --- 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); }