drop absolute udevadm path

the compat symlink from bin to sbin has been dropped with bullseye, and
we rely on PATH begin set properly in our daemons/CLI tools anyway..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-01-25 09:10:38 +01:00
committed by Thomas Lamprecht
parent a7e0184190
commit d3a5e30963
2 changed files with 2 additions and 6 deletions

View File

@ -17,7 +17,6 @@ my $ZPOOL = "/sbin/zpool";
my $SGDISK = "/sbin/sgdisk";
my $PVS = "/sbin/pvs";
my $LVS = "/sbin/lvs";
my $UDEVADM = "/bin/udevadm";
my $LSBLK = "/bin/lsblk";
sub verify_blockdev_path {
@ -312,7 +311,7 @@ sub get_udev_info {
my $info = "";
my $data = {};
eval {
run_command([$UDEVADM, 'info', '-p', $dev, '--query', 'all'], outfunc => sub {
run_command(['udevadm', 'info', '-p', $dev, '--query', 'all'], outfunc => sub {
my ($line) = @_;
$info .= "$line\n";
});