services: udev: Make /dev/kvm 666 as a workaround.

* gnu/services/base.scm (kvm-udev-rule): Change /dev/kvm mode to 666 to
  work around <http://bugs.gnu.org/18994>.
This commit is contained in:
Ludovic Courtès 2014-11-08 15:09:43 +01:00
parent 99ae9ceb18
commit 421c3bcc1b
1 changed files with 4 additions and 1 deletions

View File

@ -542,8 +542,11 @@ item of @var{packages}."
(call-with-output-file (call-with-output-file
(string-append rules.d "/90-kvm.rules") (string-append rules.d "/90-kvm.rules")
(lambda (port) (lambda (port)
;; FIXME: As a workaround for
;; <http://bugs.gnu.org/18994>, make /dev/kvm 666
;; instead of 660.
(display "\ (display "\
KERNEL==\"kvm\", GROUP=\"kvm\", MODE=\"0660\"\n" port)))) KERNEL==\"kvm\", GROUP=\"kvm\", MODE=\"0666\"\n" port))))
#:modules '((guix build utils)))) #:modules '((guix build utils))))
(define* (udev-service #:key (udev eudev) (rules '())) (define* (udev-service #:key (udev eudev) (rules '()))