X-Git-Url: https://git.proxmox.com/?p=pve-storage.git;a=blobdiff_plain;f=PVE%2FAPI2%2FDisks%2FLVMThin.pm;h=2fd84845654ffd50c7b74b2df5f9f25b52892b8d;hp=81d91a616034615f35514fd26004e497a0a92676;hb=21a75847a8ef3c8226c92eee1ec12ee233cd6757;hpb=e99bc248d474796b64b7ef1d75d864cdd0b9d5df diff --git a/PVE/API2/Disks/LVMThin.pm b/PVE/API2/Disks/LVMThin.pm index 81d91a6..2fd8484 100644 --- a/PVE/API2/Disks/LVMThin.pm +++ b/PVE/API2/Disks/LVMThin.pm @@ -132,6 +132,12 @@ __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 $@; + if ($param->{add_storage}) { my $storage_params = { type => 'lvmthin',