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 @@ the user's target storage device rather than on the RAM disk."
(or (not (and (string-suffix? "linux-gnu" %host-type)
(or (string-prefix? "x86_64" %host-type)
(string-prefix? "i686" %host-type))))
(file-exists? "/dev/fb0")
(invoke #+(file-append kmod "/bin/modprobe")
"uvesafb"
(string-append "v86d=" #$v86d "/sbin/v86d")