Accepting request 1090545 from Virtualization
OBS-URL: https://build.opensuse.org/request/show/1090545 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virtiofsd?expand=0&rev=2
This commit is contained in:
commit
5d6c0fed11
5
50-qemu-virtiofsd.json
Normal file
5
50-qemu-virtiofsd.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"description": "QEMU virtiofsd vhost-user-fs",
|
||||
"type": "fs",
|
||||
"binary": "/usr/libexec/virtiofsd"
|
||||
}
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 2 15:40:06 UTC 2023 - Caleb Crane <caleb.crane@suse.com>
|
||||
|
||||
- Add qemu config file to ensure qemu is aware of the virtiofsd executable
|
||||
- https://www.reddit.com/r/suse/comments/13xmote/vm_with_virtiofs_does_not_start_unable_to_find_a/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 25 02:33:51 UTC 2023 - Caleb Crane <caleb.crane@suse.com>
|
||||
|
||||
|
@ -26,6 +26,7 @@ URL: https://gitlab.com/virtio-fs/virtiofsd
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: vendor.tar.xz
|
||||
Source2: cargo_config
|
||||
Source3: 50-qemu-virtiofsd.json
|
||||
BuildRequires: cargo-packaging
|
||||
BuildRequires: libcap-ng-devel
|
||||
BuildRequires: libseccomp-devel
|
||||
@ -35,10 +36,6 @@ ExcludeArch: %ix86 %arm
|
||||
%description
|
||||
vhost-user virtio-fs device backend written in Rust
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%{_libexecdir}/virtiofsd
|
||||
|
||||
%prep
|
||||
%autosetup -a1
|
||||
mkdir .cargo
|
||||
@ -48,10 +45,18 @@ cp %{SOURCE2} .cargo/config
|
||||
%{cargo_build}
|
||||
|
||||
%install
|
||||
install -D -d -m 0755 %{buildroot}%{_libexecdir}
|
||||
install -m 0755 %{_builddir}/%{name}-%{version}/target/release/virtiofsd %{buildroot}%{_libexecdir}/virtiofsd
|
||||
mkdir -p %{buildroot}%{_libexecdir}
|
||||
install -D -p -m 0755 %{_builddir}/%{name}-%{version}/target/release/virtiofsd %{buildroot}%{_libexecdir}/virtiofsd
|
||||
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/qemu/vhost-user/50-qemu-virtiofsd.json
|
||||
|
||||
%check
|
||||
%{cargo_test}
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
%{_libexecdir}/virtiofsd
|
||||
%dir %{_datadir}/qemu
|
||||
%dir %{_datadir}/qemu/vhost-user
|
||||
%{_datadir}/qemu/vhost-user/50-qemu-virtiofsd.json
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user