]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/Storage.pm
drop absolute udevadm path
[pve-storage.git] / PVE / Storage.pm
index 76d17c64d2a95ff1ad7877212c432be0d1a2e8f6..d8197c30596ed3e407cebfa99f4668f8c28d7140 100755 (executable)
@@ -103,8 +103,6 @@ if ( -d '/usr/share/perl5/PVE/Storage/Custom' ) {
 # initialize all plugins
 PVE::Storage::Plugin->init();
 
-my $UDEVADM = '/sbin/udevadm';
-
 our $iso_extension_re = qr/\.(?:iso|img)/i;
 
 #  PVE::Storage utility functions
@@ -1075,8 +1073,7 @@ sub activate_storage {
 
     # only call udevsettle if there are events
     if ($newseq > $cache->{uevent_seqnum}) {
-       my $timeout = 30;
-       system ("$UDEVADM settle --timeout=$timeout"); # ignore errors
+       system ("udevadm settle --timeout=30"); # ignore errors
        $cache->{uevent_seqnum} = $newseq;
     }