build: image: Do not call make-essential-device-nodes by default.

Calling "mknod" without root permissions fails. Plus those device nodes do not
appear to be needed to boot.

* gnu/build/image.scm (initialize-root-partition): Do not use
make-essential-device-nodes as default make-device-nodes procedure.
This commit is contained in:
Mathieu Othacehe 2020-06-09 10:23:15 +02:00
parent 1b5d26c967
commit 8423c2d309
No known key found for this signature in database
GPG Key ID: 8354763531769CA6

View File

@ -161,8 +161,7 @@ (define* (initialize-root-partition root
references-graphs
(register-closures? #t)
system-directory
(make-device-nodes
make-essential-device-nodes)
make-device-nodes
#:allow-other-keys)
"Initialize the given ROOT directory. Use BOOTCFG and BOOTCFG-LOCATION to
install the bootloader configuration.
@ -175,7 +174,8 @@ (define* (initialize-root-partition root
(populate-store references-graphs root)
;; Populate /dev.
(make-device-nodes root)
(when make-device-nodes
(make-device-nodes root))
(when register-closures?
(for-each (lambda (closure)