]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/API2/Disks/ZFS.pm
diskmanage: add helper for udev workaround
[pve-storage.git] / PVE / API2 / Disks / ZFS.pm
index e8d5e7c1c8d83afa27f6ec90b7c749cb94c844cd..e8927123da265b7ea72404bee1608cbd609e4e96 100644 (file)
@@ -426,11 +426,7 @@ __PACKAGE__->register_method ({
                    run_command($cmd);
                }
 
-               # 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', $devs->@*]); };
-               warn $@ if $@;
+               PVE::Diskmanage::udevadm_trigger($devs->@*);
 
                if ($param->{add_storage}) {
                    my $storage_params = {