aboutsummaryrefslogtreecommitdiff
path: root/gnu/build/image.scm
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2020-06-09 10:23:15 +0200
committerMathieu Othacehe <othacehe@gnu.org>2020-06-09 10:32:19 +0200
commit8423c2d3097da2d9d25b6f56c1971ac7147d3ad9 (patch)
tree48e96c93adac5a612c300b1eedb25f4ef78157b6 /gnu/build/image.scm
parent1b5d26c967b17b635c88a094e010cd42a9afb220 (diff)
downloadguix-8423c2d3097da2d9d25b6f56c1971ac7147d3ad9.tar.gz
guix-8423c2d3097da2d9d25b6f56c1971ac7147d3ad9.zip
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.
Diffstat (limited to 'gnu/build/image.scm')
-rw-r--r--gnu/build/image.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/build/image.scm b/gnu/build/image.scm
index fb85bd4bb8..893b846976 100644
--- a/gnu/build/image.scm
+++ b/gnu/build/image.scm
@@ -161,8 +161,7 @@ deduplicates files common to CLOSURE and the rest of PREFIX."
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 @@ of the directory of the 'system' derivation."
(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)