From: Florian Pelz Date: Mon, 12 Dec 2022 15:33:26 +0100 Subject: [PATCH doesnt work] installer: Fix uvesafb not loading. * gnu/system/install.scm (uvesafb-shepherd-service): Wait before invoking modprobe. --- gnu/system/install.scm | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/gnu/system/install.scm b/gnu/system/install.scm index f6f1923121..ffde933990 100644 --- a/gnu/system/install.scm +++ b/gnu/system/install.scm @@ -4,7 +4,7 @@ ;;; Copyright © 2016 Andreas Enge ;;; Copyright © 2017 Marius Bakke ;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice -;;; Copyright © 2020 Florian Pelz +;;; Copyright © 2020, 2022 Florian Pelz ;;; Copyright © 2020 Efraim Flashner ;;; Copyright © 2022 Josselin Poiret ;;; @@ -289,11 +289,18 @@ (define (uvesafb-shepherd-service _) (provision '(maybe-uvesafb)) (requirement '(file-systems)) (start #~(lambda () - (or (file-exists? "/dev/fb0") - (invoke #+(file-append kmod "/bin/modprobe") + (define (start-uvesafb) + ;; HOW TO DO THIS THE RIGHT WAY?? + (if (file-exists? "/run/current-system/kernel/lib\ +/modules/6.0.10-gnu/kernel/drivers/video/fbdev/uvesafb.ko.gz") + (invoke #+(file-append kmod "/bin/modprobe") "uvesafb" (string-append "v86d=" #$v86d "/sbin/v86d") - "mode_option=1024x768")))) + "mode_option=1024x768") + ;; Wait and try again. + (begin (sleep 1) (start-uvesafb)))) + (or (file-exists? "/dev/fb0") + (start-uvesafb)))) (respawn? #f) (one-shot? #t)))) -- 2.38.1