SHA256
1
0
forked from pool/xen

- bsc#979002 - add 60-persistent-xvd.rules and helper script

also to initrd, add the relevant dracut helper

- bnc#953518 - unplug also SCSI disks in qemu-xen-traditional for
  upstream unplug protocol

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=449
This commit is contained in:
2016-09-12 13:29:42 +00:00
committed by Git OBS Bridge
parent a9e5d7ffae
commit ea9d7028da
3 changed files with 47 additions and 2 deletions

View File

@@ -165,7 +165,7 @@ BuildRequires: xorg-x11-util-devel
%endif
%endif
Version: 4.7.0_10
Version: 4.7.0_11
Release: 0
Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel)
License: GPL-2.0
@@ -418,7 +418,8 @@ Requires: bridge-utils
%if %suse_version >= 1315
Requires: grub2-x86_64-xen
%endif
Requires: qemu-ovmf-x86_64
# Uncomment when ovmf is supported
#Requires: qemu-ovmf-x86_64
Requires: qemu-x86
%endif
%ifarch %arm aarch64
@@ -820,6 +821,25 @@ KERNEL=="xvd*[0-9]", ENV{VBD_HD_SYMLINK}=="hd[a-d]", SYMLINK+="$env{VBD_HD_SYML
LABEL="xvd_aliases_end"
_EOR_
#
dracut_moduledir=$RPM_BUILD_ROOT/usr/lib/dracut/modules.d/50%{name}-tools-domU
mkdir -p ${dracut_moduledir}
tee ${dracut_moduledir}/module-setup.sh <<'_EOS_'
#!/bin/bash
check() {
require_binaries xenstore-read || return 1
return 0
}
depends() {
return 0
}
install() {
inst_multiple xenstore-read
inst_multiple ${udevdir}/%{name}-tools-domU.sh
inst_rules 60-persistent-xvd.rules
}
_EOS_
#
udev_programdir=$RPM_BUILD_ROOT/usr/lib/udev
mkdir -p ${udev_programdir}
tee ${udev_programdir}/%{name}-tools-domU.sh <<'_EOS_'
@@ -1289,6 +1309,7 @@ rm -f $RPM_BUILD_ROOT/usr/libexec/qemu-bridge-helper
/bin/xenstore-*
%if %{?with_systemd}0
/usr/lib/udev
/usr/lib/dracut
%endif
%files devel