summary refs log tree commit diff
path: root/gnu/system/images
diff options
context:
space:
mode:
authorJan (janneke) Nieuwenhuizen <janneke@gnu.org>2020-06-25 21:47:51 +0200
committerJan (janneke) Nieuwenhuizen <janneke@gnu.org>2020-06-25 22:52:12 +0200
commit2463a78d17673581978debff6c6c9fce7966980a (patch)
treede609a0194df6466535ef0c4f59a3b19181bcf45 /gnu/system/images
parentfd932862ac4b464bd2642be114f73ee39c1ad64f (diff)
downloadguix-2463a78d17673581978debff6c6c9fce7966980a.tar.gz
image: hurd: Initialize root partition for the Hurd.
This is a follow-up to commit b904b59ce592c89dfb4675a8c06757afed6738a0.

* gnu/system/image.scm (hurd-initialize-root-partition): Move to ...
* gnu/system/images/hurd.scm (hurd-initialize-root-partition): ... here.
(hurd-disk-image): Use it.
Diffstat (limited to 'gnu/system/images')
-rw-r--r--gnu/system/images/hurd.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/system/images/hurd.scm b/gnu/system/images/hurd.scm
index e5e120d49c..31942e7386 100644
--- a/gnu/system/images/hurd.scm
+++ b/gnu/system/images/hurd.scm
@@ -57,6 +57,13 @@
                               (password-authentication? #t)))
                %base-services/hurd))))
 
+(define hurd-initialize-root-partition
+  #~(lambda* (#:rest args)
+      (apply initialize-root-partition
+             (append args
+                     (list #:make-device-nodes
+                           make-hurd-device-nodes)))))
+
 (define hurd-disk-image
   (image
    (format 'disk-image)
@@ -69,7 +76,7 @@
            (file-system "ext2")
            (file-system-options '("-o" "hurd" "-O" "ext_attr"))
            (flags '(boot))
-           (initializer (gexp initialize-root-partition)))))))
+           (initializer hurd-initialize-root-partition))))))
 
 (define hurd-barebones-disk-image
   (image