| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 |
|
| 19 | (define-module (gnu installer kernel)
|
| 20 | #:use-module (gnu system hurd)
|
| 21 | #:use-module (guix read-print)
|
| 22 | #:export (kernel->configuration))
|
| 23 |
|
| 24 | (define-syntax-rule (G_ str)
|
| 25 | |
| 26 | |
| 27 | str)
|
| 28 |
|
| 29 | (define (kernel->configuration kernel dry-run?)
|
| 30 | (if (and (string? kernel)
|
| 31 | (string-prefix? "Hurd" kernel))
|
| 32 | `((kernel %hurd-default-operating-system-kernel)
|
| 33 | ,(comment (G_ ";; \"noide\" disables the gnumach IDE driver, enabling rumpdisk.\n"))
|
| 34 | (kernel-arguments '("noide"))
|
| 35 | (firmware '())
|
| 36 | (hurd hurd)
|
| 37 | (locale-libcs (list glibc/hurd))
|
| 38 | (name-service-switch #f)
|
| 39 | (essential-services (hurd-default-essential-services this-operating-system))
|
| 40 | (privileged-programs '())
|
| 41 | (setuid-programs %setuid-programs/hurd))
|
| 42 | '()))
|