1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-31 16:21:26 +03:00

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.
This commit is contained in:
Lennart Poettering 2021-06-02 15:34:34 +02:00
parent 68695ce4d6
commit 4d94c74fae

View 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);
}