mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1460411 - Add kvm to desktop1604-test image; r=jmaher
Our normal ubuntu 16.04 test image is suitable for hosting an Android x86 emulator with these minor updates: Install kvm and make sure /dev/kvm rw permissions are open for everyone. Note that /dev/kvm is generally only visible when running docker with --privileged; its permissions cannot be modified in the Dockerfile, only at run-time: run-task is the first opportunity.
This commit is contained in:
parent
2a66c823ae
commit
bd4f5cfdbf
@ -56,6 +56,7 @@ apt_packages+=('net-tools')
|
||||
apt_packages+=('pulseaudio')
|
||||
apt_packages+=('pulseaudio-module-bluetooth')
|
||||
apt_packages+=('pulseaudio-module-gconf')
|
||||
apt_packages+=('qemu-kvm')
|
||||
apt_packages+=('rlwrap')
|
||||
apt_packages+=('screen')
|
||||
apt_packages+=('software-properties-common')
|
||||
|
@ -497,6 +497,11 @@ def main(args):
|
||||
else:
|
||||
uid = gid = gids = None
|
||||
|
||||
if os.path.exists("/dev/kvm"):
|
||||
# Ensure kvm permissions for worker, required for Android x86
|
||||
st = os.stat("/dev/kvm")
|
||||
os.chmod("/dev/kvm", st.st_mode | 0666)
|
||||
|
||||
# Validate caches.
|
||||
#
|
||||
# Taskgraph should pass in a list of paths that are caches via an
|
||||
|
Loading…
Reference in New Issue
Block a user