diff options
Diffstat (limited to 'gnu/system')
| -rw-r--r-- | gnu/system/image.scm | 6 | ||||
| -rw-r--r-- | gnu/system/images/hurd.scm | 12 |
2 files changed, 14 insertions, 4 deletions
diff --git a/gnu/system/image.scm b/gnu/system/image.scm index 0e4967012c8..bdf4aff9718 100644 --- a/gnu/system/image.scm +++ b/gnu/system/image.scm | |||
| @@ -352,7 +352,8 @@ set to the given OS." | |||
| 352 | (define-syntax-rule (with-imported-modules* gexp* ...) | 352 | (define-syntax-rule (with-imported-modules* gexp* ...) |
| 353 | (with-extensions gcrypt-sqlite3&co | 353 | (with-extensions gcrypt-sqlite3&co |
| 354 | (with-imported-modules `(,@(source-module-closure | 354 | (with-imported-modules `(,@(source-module-closure |
| 355 | '((gnu build image) | 355 | '((ice-9 optargs) |
| 356 | (gnu build image) | ||
| 356 | (gnu build bootloader) | 357 | (gnu build bootloader) |
| 357 | (gnu build hurd-boot) | 358 | (gnu build hurd-boot) |
| 358 | (gnu build linux-boot) | 359 | (gnu build linux-boot) |
| @@ -360,7 +361,8 @@ set to the given OS." | |||
| 360 | #:select? neither-config-nor-git?) | 361 | #:select? neither-config-nor-git?) |
| 361 | ((guix config) => ,(make-config.scm))) | 362 | ((guix config) => ,(make-config.scm))) |
| 362 | #~(begin | 363 | #~(begin |
| 363 | (use-modules (gnu build image) | 364 | (use-modules (ice-9 optargs) |
| 365 | (gnu build image) | ||
| 364 | (gnu build bootloader) | 366 | (gnu build bootloader) |
| 365 | (gnu build hurd-boot) | 367 | (gnu build hurd-boot) |
| 366 | (gnu build linux-boot) | 368 | (gnu build linux-boot) |
diff --git a/gnu/system/images/hurd.scm b/gnu/system/images/hurd.scm index ba223b1e0cd..c65a9c8f13d 100644 --- a/gnu/system/images/hurd.scm +++ b/gnu/system/images/hurd.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2020 Mathieu Othacehe <m.othacehe@gmail.com> | 2 | ;;; Copyright © 2020 Mathieu Othacehe <m.othacehe@gmail.com> |
| 3 | ;;; Copyright © 2020, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> | 3 | ;;; Copyright © 2020, 2024, 2026 Janneke Nieuwenhuizen <janneke@gnu.org> |
| 4 | ;;; | 4 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| 6 | ;;; | 6 | ;;; |
| @@ -22,6 +22,7 @@ | |||
| 22 | #:use-module (gnu bootloader) | 22 | #:use-module (gnu bootloader) |
| 23 | #:use-module (gnu bootloader grub) | 23 | #:use-module (gnu bootloader grub) |
| 24 | #:use-module (gnu image) | 24 | #:use-module (gnu image) |
| 25 | #:use-module (gnu packages hurd) | ||
| 25 | #:use-module (gnu packages ssh) | 26 | #:use-module (gnu packages ssh) |
| 26 | #:use-module (guix platforms x86) | 27 | #:use-module (guix platforms x86) |
| 27 | #:use-module (gnu services) | 28 | #:use-module (gnu services) |
| @@ -97,7 +98,14 @@ | |||
| 97 | #~(lambda* (#:rest args) | 98 | #~(lambda* (#:rest args) |
| 98 | (apply initialize-root-partition | 99 | (apply initialize-root-partition |
| 99 | (append args | 100 | (append args |
| 100 | (list #:make-device-nodes make-hurd-device-nodes | 101 | (list #:make-device-nodes |
| 102 | (lambda device-args | ||
| 103 | (let-keywords (cdr args) #t | ||
| 104 | ((system-directory #f)) | ||
| 105 | (let ((hurd (in-vicinity system-directory | ||
| 106 | "hurd/hurd"))) | ||
| 107 | (apply make-hurd-device-nodes | ||
| 108 | (cons* #:hurd hurd device-args))))) | ||
| 101 | ;; XXX Creating a db.sqlite with journal_mode=WAL | 109 | ;; XXX Creating a db.sqlite with journal_mode=WAL |
| 102 | ;; yields "unable to open database file" on GNU/Hurd | 110 | ;; yields "unable to open database file" on GNU/Hurd |
| 103 | ;; for an sqlite with the hurd-locking-mode.patch; | 111 | ;; for an sqlite with the hurd-locking-mode.patch; |
