mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
storage: fs: Remove build-time detection of 'showmount' program
With the new virCommand infrastructure which can find the program in path automatically we no longer need the build-time detection. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
6f10d15ca1
commit
ce1c9bb8ea
@ -429,8 +429,6 @@ BuildRequires: systemtap-sdt-devel
|
||||
BuildRequires: /usr/bin/dtrace
|
||||
# For mount/umount in FS driver
|
||||
BuildRequires: util-linux
|
||||
# For showmount in FS driver (netfs discovery)
|
||||
BuildRequires: nfs-utils
|
||||
%if %{with_numad}
|
||||
BuildRequires: numad
|
||||
%endif
|
||||
|
@ -1855,13 +1855,6 @@ if conf.has('WITH_LIBVIRTD')
|
||||
conf.set_quoted('MOUNT', mount_prog.full_path())
|
||||
conf.set_quoted('UMOUNT', umount_prog.full_path())
|
||||
conf.set_quoted('MKFS', mkfs_prog.full_path())
|
||||
|
||||
showmount_prog = find_program('showmount', required: false, dirs: libvirt_sbin_path)
|
||||
showmount_path = ''
|
||||
if showmount_prog.found()
|
||||
showmount_path = showmount_prog.full_path()
|
||||
endif
|
||||
conf.set_quoted('SHOWMOUNT', showmount_path)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -106,7 +106,7 @@ virStorageBackendFileSystemNetFindNFSPoolSources(virNetfsDiscoverState *state)
|
||||
|
||||
g_autoptr(virCommand) cmd = NULL;
|
||||
|
||||
cmd = virCommandNewArgList(SHOWMOUNT,
|
||||
cmd = virCommandNewArgList("showmount",
|
||||
"--no-headers",
|
||||
"--exports",
|
||||
state->host,
|
||||
|
Loading…
Reference in New Issue
Block a user