diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index 044b7ffe4..e316a4261 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -984,8 +984,9 @@ static int _deactivate_node(const char *name, uint32_t major, uint32_t minor, r = dm_task_run(dmt); /* FIXME Until kernel returns actual name so dm-ioctl.c can handle it */ - rm_dev_node(name, dmt->cookie_set && - !(udev_flags & DM_UDEV_DISABLE_DM_RULES_FLAG)); + if (!(udev_flags & DM_UDEV_DISABLE_LIBRARY_FALLBACK)) + rm_dev_node(name, dmt->cookie_set && + !(udev_flags & DM_UDEV_DISABLE_DM_RULES_FLAG)); /* FIXME Remove node from tree or mark invalid? */