From 845a65a755fc63e06abd542da9d40f90abc04f91 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 14 Aug 2024 13:53:17 +0200 Subject: [PATCH] tools: vgmknodes: handle /dev/mapper content without LV refresh only if udev not running --- tools/vgmknodes.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/vgmknodes.c b/tools/vgmknodes.c index d37e62f8d..d1e785ba6 100644 --- a/tools/vgmknodes.c +++ b/tools/vgmknodes.c @@ -34,8 +34,10 @@ static int _vgmknodes_single(struct cmd_context *cmd, struct logical_volume *lv, int vgmknodes(struct cmd_context *cmd, int argc, char **argv) { - if (!lv_mknodes(cmd, NULL)) - return_ECMD_FAILED; + if (!dm_udev_get_sync_support()) { + if (!lv_mknodes(cmd, NULL)) + return_ECMD_FAILED; + } return process_each_lv(cmd, argc, argv, NULL, NULL, LCK_VG_READ, NULL, NULL, &_vgmknodes_single); } -- 2.43.5