mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
Revert "system: Don’t create a module database when no modules are available."
This reverts commitb2fff3b5de
. Fixes <https://bugs.gnu.org/40713>. Reported by pkill9 <pkill9@runbox.com>. This commit is incorrect: its effect depends on whether KERNEL's build output is already available in the store, it breaks with non-package kernels as reported at <https://bugs.gnu.org/40713>, and the LINUX-MODULE-DATABASE hook is required at all times since5c79f23863
removed the relevant bits from the 'linux-libre' package.
This commit is contained in:
parent
a322e9d16b
commit
71977a6c59
1 changed files with 1 additions and 7 deletions
|
@ -477,19 +477,13 @@ (define* (operating-system-directory-base-entries os)
|
|||
value of the SYSTEM-SERVICE-TYPE service."
|
||||
(let ((locale (operating-system-locale-directory os)))
|
||||
(mlet* %store-monad ((kernel -> (operating-system-kernel os))
|
||||
(kernel-modules (package-file kernel "lib/modules"))
|
||||
(modules ->
|
||||
(operating-system-kernel-loadable-modules os))
|
||||
(has-modules? ->
|
||||
(or (not (null? modules))
|
||||
(file-exists? kernel-modules)))
|
||||
(kernel
|
||||
(profile-derivation
|
||||
(packages->manifest
|
||||
(cons kernel modules))
|
||||
#:hooks (if has-modules?
|
||||
(list linux-module-database)
|
||||
'())))
|
||||
#:hooks (list linux-module-database)))
|
||||
(initrd -> (operating-system-initrd-file os))
|
||||
(params (operating-system-boot-parameters-file os)))
|
||||
(return `(("kernel" ,kernel)
|
||||
|
|
Loading…
Reference in a new issue