]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/API2/Disks/LVMThin.pm
diskmanage: add helper for udev workaround
[pve-storage.git] / PVE / API2 / Disks / LVMThin.pm
index 52f3062be5c48f7a76a62cc286e66e88c8c1838a..23f262a5dfdbf026a6254a04c34455ef2533527a 100644 (file)
@@ -141,11 +141,7 @@ __PACKAGE__->register_method ({
                    $name
                ]);
 
-               # FIXME: Remove once we depend on systemd >= v249.
-               # Work around udev bug https://github.com/systemd/systemd/issues/18525 to ensure the
-               # udev database is updated.
-               eval { run_command(['udevadm', 'trigger', $dev]); };
-               warn $@ if $@;
+               PVE::Diskmanage::udevadm_trigger($dev);
 
                if ($param->{add_storage}) {
                    my $storage_params = {