vm: load dummy-hcd module to suppress libusb bug

libusb crashes when no USB controller is present, load dummy-hcd as workaround.
This commit is contained in:
Marek Marczykowski 2012-11-19 17:52:16 +01:00
parent 85638ae0d6
commit 3a3e265d1d
2 changed files with 3 additions and 0 deletions

1
misc/qubes_misc.modules Executable file
View File

@ -0,0 +1 @@
modprobe dummy-hcd 2>/dev/null || true

View File

@ -133,6 +133,7 @@ fi
install misc/dispvm-prerun.sh $RPM_BUILD_ROOT/usr/lib/qubes/dispvm-prerun.sh install misc/dispvm-prerun.sh $RPM_BUILD_ROOT/usr/lib/qubes/dispvm-prerun.sh
install -D misc/qubes_core.modules $RPM_BUILD_ROOT/etc/sysconfig/modules/qubes_core.modules install -D misc/qubes_core.modules $RPM_BUILD_ROOT/etc/sysconfig/modules/qubes_core.modules
install -D misc/qubes_misc.modules $RPM_BUILD_ROOT/etc/sysconfig/modules/qubes_misc.modules
install -m 0644 network/qubes_network.rules $RPM_BUILD_ROOT/etc/udev/rules.d/99-qubes_network.rules install -m 0644 network/qubes_network.rules $RPM_BUILD_ROOT/etc/udev/rules.d/99-qubes_network.rules
install network/qubes_setup_dnat_to_ns $RPM_BUILD_ROOT/usr/lib/qubes install network/qubes_setup_dnat_to_ns $RPM_BUILD_ROOT/usr/lib/qubes
@ -380,6 +381,7 @@ rm -rf $RPM_BUILD_ROOT
/etc/sysconfig/iptables /etc/sysconfig/iptables
/etc/sysconfig/ip6tables /etc/sysconfig/ip6tables
/etc/sysconfig/modules/qubes_core.modules /etc/sysconfig/modules/qubes_core.modules
/etc/sysconfig/modules/qubes_misc.modules
/etc/tinyproxy/filter-qubes-yum /etc/tinyproxy/filter-qubes-yum
/etc/tinyproxy/tinyproxy-qubes-yum.conf /etc/tinyproxy/tinyproxy-qubes-yum.conf
/etc/udev/rules.d/50-qubes_memory.rules /etc/udev/rules.d/50-qubes_memory.rules