Comment 4 for bug 1874501

Revision history for this message
Ryan Harper (raharper) wrote :

This patch configures the dm_task to use the DM_UDEV_DISABLE_LIBRARY_FALLBACK udev flag to prevent calls to dm_mknodes() from using the library fallback code.

Another possible fix would be to obtain a different return code from vgscan.c where it does not detect any VGs and then calls the mknode path due to the argument passed to the cli

    maxret = process_each_vg(cmd, argc, argv, NULL, NULL, 0, 0, NULL, &_vgscan_single);

    /* at this point, this could return some indication if vgs were found
       such that we could skip the vgmknodes() if no vgs were found */

    if (arg_is_set(cmd, mknodes_ARG)) {
        ret = vgmknodes(cmd, argc, argv);
        if (ret > maxret)
            maxret = ret;
    }