From a534b1dd2c1b783379fda5495b1e3fa9ae778ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 2 Jun 2016 02:52:59 +0200 Subject: [PATCH] qvm-usb: remove scary warning about PV USB stability USBIP (used for PV USB here) is considered stable by Linux maintainers, so follow their judgement. Fixes QubesOS/qubes-issues#531 --- qvm-tools/qvm-usb | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/qvm-tools/qvm-usb b/qvm-tools/qvm-usb index 32abf3bd..f2b4407e 100755 --- a/qvm-tools/qvm-usb +++ b/qvm-tools/qvm-usb @@ -27,8 +27,6 @@ from optparse import OptionParser import sys import os -pvusb_enable_flagfile = '/var/lib/qubes/pvusb-enable.flag' - def main(): usage = "usage: %prog -l [options]\n"\ "usage: %prog -a [options] :\n"\ @@ -49,24 +47,6 @@ def main(): (options, args) = parser.parse_args () - if not os.path.exists(pvusb_enable_flagfile): - print >> sys.stderr, "" - print >> sys.stderr, "******* WARNING *** WARNING *** WARNING *** WARNING *******" - print >> sys.stderr, "*** ***" - print >> sys.stderr, "*** PVUSB passthrough kernel support is still unstable. ***" - print >> sys.stderr, "*** It can CRASH your VMs. ***" - print >> sys.stderr, "*** ***" - print >> sys.stderr, "***********************************************************" - print >> sys.stderr, "" - print >> sys.stderr, "To use it, you need install kernel from \"unstable\" repository" - print >> sys.stderr, "If you still want to enable it, type capital YES" - print >> sys.stderr, "" - prompt = raw_input ("Do you want enable PV USB support? ") - if prompt == "YES": - open(pvusb_enable_flagfile, "w").close() - else: - exit(1) - if hasattr(os, "geteuid") and os.geteuid() == 0: if not options.force_root: print >> sys.stderr, "*** Running this tool as root is strongly discouraged, this will lead you in permissions problems."