~ruther/guix-local

0a1af11ff82254b369fa3ac8a9af2d97bb877ed0 — Janneke Nieuwenhuizen 3 years ago 337dbf6
hurd-boot: Setup/dev/hdX, /dev/hdXsY IDE device node translators.

The gnumach builtin IDE hd devices are still used, unless booting with
"noide".

* gnu/build/hurd-boot.scm (set-hurd-device-translators): Create /dev/hd{0..3},
/dev/hd{0..3}s{0..3}.
1 files changed, 13 insertions(+), 0 deletions(-)

M gnu/build/hurd-boot.scm
M gnu/build/hurd-boot.scm => gnu/build/hurd-boot.scm +13 -0
@@ 249,6 249,19 @@ set."
                    (iota 10 0))
      ,@(append-map (lambda (n)
                      (let* ((n (number->string n))
                             (disk (string-append "hd" n))
                             (drive (string-append "dev/" disk)))
                        `((,drive ("/hurd/storeio" ,disk) #o600)
                          ,@(map (lambda (p)
                                   (let ((p (number->string p)))
                                     `(,(string-append drive "s" p)
                                       ("/hurd/storeio"
                                        ,(string-append disk "s" p))
                                       #o660)))
                                 (iota 4 1)))))
                    (iota 4 0))
      ,@(append-map (lambda (n)
                      (let* ((n (number->string n))
                             (drive (string-append "dev/wd" n))
                             (disk (string-append "@/dev/disk:wd" n)))
                        `((,drive ("/hurd/storeio" ,disk) #o600)