mirror of
https://git.yoctoproject.org/poky
synced 2026-03-16 20:29:41 +01:00
runqemu: fix permission check of /dev/vhost-net
The code should check /dev/vhost-net instead of /dev/kvm. And the permission check logically belongs to the part when kvm-vhost is enabled. Also fix the URL to point to the correct wiki page. (From OE-Core rev: 53bdf2d20077921bdf83641c365d60d85174f5b5) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -585,10 +585,10 @@ class BaseConfig(object):
|
||||
logger.error("For further help see:")
|
||||
raise RunQemuError(yocto_paravirt_kvm_wiki)
|
||||
|
||||
if not os.access(dev_kvm, os.W_OK|os.R_OK):
|
||||
if not os.access(dev_vhost, os.W_OK|os.R_OK):
|
||||
logger.error("You have no read or write permission on /dev/vhost-net.")
|
||||
logger.error("Please change the ownership of this file as described at:")
|
||||
raise RunQemuError(yocto_kvm_wiki)
|
||||
raise RunQemuError(yocto_paravirt_kvm_wiki)
|
||||
|
||||
def check_fstype(self):
|
||||
"""Check and setup FSTYPE"""
|
||||
|
||||
Reference in New Issue
Block a user