Browse Source

gnu: linux-initrd: Make device nodes for QEMU's hard disk.

* gnu/packages/linux-initrd.scm (qemu-initrd): Make /dev/vda*.
gn-latest-20200428
Ludovic Courtès 8 years ago
parent
commit
b48d21b246
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      gnu/packages/linux-initrd.scm

+ 5
- 0
gnu/packages/linux-initrd.scm View File

@ -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"))


Loading…
Cancel
Save