aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/linux-initrd.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/linux-initrd.scm')
-rw-r--r--gnu/packages/linux-initrd.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/linux-initrd.scm b/gnu/packages/linux-initrd.scm
index f1e488ad69..17f42652e8 100644
--- a/gnu/packages/linux-initrd.scm
+++ b/gnu/packages/linux-initrd.scm
@@ -270,6 +270,11 @@ the Linux kernel.")
(unless (configure-qemu-networking)
(display "network interface is DOWN\n"))
+ ;; Make the device nodes for QEMU's hard disk and partitions.
+ (mknod "/dev/vda" 'block-special #o644 (device-number 8 0))
+ (mknod "/dev/vda1" 'block-special #o644 (device-number 8 1))
+ (mknod "/dev/vda2" 'block-special #o644 (device-number 8 2))
+
;; Prepare the real root file system under /root.
(unless (file-exists? "/root")
(mkdir "/root"))