[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30604] [PATCH v11 5/6] linux-initrd: Provide our own 'modprobe' pro
From: |
Ludovic Courtès |
Subject: |
[bug#30604] [PATCH v11 5/6] linux-initrd: Provide our own 'modprobe' program. |
Date: |
Tue, 13 Mar 2018 10:28:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
address@hidden (Ludovic Courtès) skribis:
> Something annoying is that my external USB keyboard doesn’t work while
> in the initrd (when I type my passphrase). I can see that it’s detected
> early on, before I type my passphrase:
I tried looking up “modalias” right when entering a /sys/devices
directory, like you did in the initial patch, but that didn’t help:
diff --git a/gnu/build/linux-modules.scm b/gnu/build/linux-modules.scm
index 4515839e9..213a8bbb9 100644
--- a/gnu/build/linux-modules.scm
+++ b/gnu/build/linux-modules.scm
@@ -480,19 +480,22 @@ side-effect and would thus need to traverse /sys/devices
again."
(string-append module-directory "/modules.alias")))
(define (enter? director stat result) result)
- (define (down directory stat result) result)
- (define (up directory stat result) result)
- (define (skip entry stat result) result)
- (define (error name stat errno result) result)
- (define (leaf file stat result)
- (if (string=? (basename file) "modalias")
+ (define (down directory stat result)
+ ;; Check for "modalias" right when entering DIRECTORY instead of waiting
+ ;; for LEAF to be called. XXX: Doesn't help!
+ (let ((modalias (string-append directory "/modalias")))
+ (if (file-exists? modalias)
(let* ((alias (string-trim-right
- (call-with-input-file file get-string-all)))
+ (call-with-input-file modalias get-string-all)))
(modules (matching-modules alias aliases)))
(load-linux-modules-from-directory modules
module-directory)
(append modules result))
- result))
+ result)))
+ (define (up directory stat result) result)
+ (define (skip entry stat result) result)
+ (define (error name stat errno result) result)
+ (define (leaf file stat result) file stat result)
(file-system-fold enter? leaf down up skip error '() "/sys/devices"))
Ludo’.
- [bug#30604] [PATCH v11 6/6] linux-modules: Add "modules.devname" writer., (continued)
- [bug#30604] [PATCH v11 3/6] linux-modules: Add 'load-needed-linux-modules'., Ludovic Courtès, 2018/03/12
- [bug#30604] [PATCH v11 3/6] linux-modules: Add 'load-needed-linux-modules'., Danny Milosavljevic, 2018/03/12
- [bug#30604] [PATCH v11 3/6] linux-modules: Add 'load-needed-linux-modules'., Ludovic Courtès, 2018/03/13
- [bug#30604] [PATCH v11 2/6] linux-modules: Add 'load-linux-modules-from-directory'., Ludovic Courtès, 2018/03/12
- [bug#30604] [PATCH v11 2/6] linux-modules: Add 'load-linux-modules-from-directory'., Danny Milosavljevic, 2018/03/12
- [bug#30604] [PATCH v11 5/6] linux-initrd: Provide our own 'modprobe' program., Ludovic Courtès, 2018/03/12
- [bug#30604] [PATCH v11 5/6] linux-initrd: Provide our own 'modprobe' program., Ludovic Courtès, 2018/03/13
- [bug#30604] [PATCH v11 5/6] linux-initrd: Provide our own 'modprobe' program.,
Ludovic Courtès <=
- [bug#30604] [PATCH v11 5/6] linux-initrd: Provide our own 'modprobe' program., Danny Milosavljevic, 2018/03/13
- Message not available
- [bug#30604] Keyboard detection before ‘cryptsetup’ runs, Ludovic Courtès, 2018/03/18
- [bug#30604] Keyboard detection before ‘cryptsetup’ runs, Danny Milosavljevic, 2018/03/23
- [bug#30604] Keyboard detection before ‘cryptsetup’ runs, Danny Milosavljevic, 2018/03/23
- [bug#30604] Keyboard detection before ‘cryptsetup’ runs, Ludovic Courtès, 2018/03/24
- [bug#30604] Keyboard detection before ‘cryptsetup’ runs, Ludovic Courtès, 2018/03/24
- [bug#30604] [PATCH v11 1/6] linux-modules: Add "modules.alias" writer., Danny Milosavljevic, 2018/03/12
- [bug#30604] [PATCH v10 5/6] linux-initrd: Provide our own 'modprobe' program., Danny Milosavljevic, 2018/03/13
- [bug#30604] [PATCH v10 5/6] linux-initrd: Provide our own 'modprobe' program., Ludovic Courtès, 2018/03/13
- [bug#30604] [PATCH v10 5/6] linux-initrd: Provide our own 'modprobe' program., Danny Milosavljevic, 2018/03/13