Use absolute path again, or it might not work as expected when called through BackupPC

tags/virt-backup-0.2.12-1
Daniel Berteaud 12 years ago
parent 19be8595c1
commit ca229b66cf
  1. 4
      virt-backup
  2. 4
      virt-backup.spec

@ -71,9 +71,9 @@ $opts{connect} = "qemu:///system";
# Compression used with the dump action (the compression is done on the fly) # Compression used with the dump action (the compression is done on the fly)
$opts{compress} = 'none'; $opts{compress} = 'none';
# lvcreate path # lvcreate path
$opts{lvcreate} = 'lvcreate -c 512'; $opts{lvcreate} = '/sbin/lvcreate -c 512';
# lvremove path # lvremove path
$opts{lvremove} = 'lvremove'; $opts{lvremove} = '/sbin/lvremove';
# chunkfs path # chunkfs path
$opts{chunkfs} = '/usr/bin/chunkfs'; $opts{chunkfs} = '/usr/bin/chunkfs';
# Size of chunks to use with chunkfs or or blocks with dd in bytes (default to 256kB) # Size of chunks to use with chunkfs or or blocks with dd in bytes (default to 256kB)

@ -39,6 +39,10 @@ etc...
%{__rm} -rf $RPM_BUILD_ROOT %{__rm} -rf $RPM_BUILD_ROOT
%if %{?fedora}%{?rhel} <= 5
sed -i -e "s|/sbin/lvcreate|/usr/sbin/lvcreate|g" -e "s|/sbin/lvremove|/usr/sbin/lvremove|g" virt-backup
%endif
# Install backup script # Install backup script
%{__mkdir_p} $RPM_BUILD_ROOT%{_bindir}/ %{__mkdir_p} $RPM_BUILD_ROOT%{_bindir}/
%{__install} -m 0755 virt-backup $RPM_BUILD_ROOT%{_bindir}/ %{__install} -m 0755 virt-backup $RPM_BUILD_ROOT%{_bindir}/

Loading…
Cancel
Save