installer: Only load uvesafb kernel module when needed.

This is a follow-up to commit 557e6820a7.

* gnu/system/install.scm (uvesafb-shepherd-service): Check
that /dev/fb0 is not already present.
This commit is contained in:
Florian Pelz 2020-04-14 14:49:25 +02:00
parent 2b29219370
commit 0ad60b2a89
No known key found for this signature in database
GPG key ID: 300888CB39C63817

View file

@ -304,6 +304,7 @@ (define (uvesafb-shepherd-service _)
(or (not (and (string-suffix? "linux-gnu" %host-type) (or (not (and (string-suffix? "linux-gnu" %host-type)
(or (string-prefix? "x86_64" %host-type) (or (string-prefix? "x86_64" %host-type)
(string-prefix? "i686" %host-type)))) (string-prefix? "i686" %host-type))))
(file-exists? "/dev/fb0")
(invoke #+(file-append kmod "/bin/modprobe") (invoke #+(file-append kmod "/bin/modprobe")
"uvesafb" "uvesafb"
(string-append "v86d=" #$v86d "/sbin/v86d") (string-append "v86d=" #$v86d "/sbin/v86d")